#NEWLINE# def get_redirect_url( self , **kwargs ) : #NEWLINE# #INDENT# form = self . productclass_form_class ( self . request . GET ) #NEWLINE# if form . is_valid ( ) : #NEWLINE# #INDENT# product_class = form . cleaned_data [ 'product_class' ] #NEWLINE# return self . get_product_create_url ( product_class ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . get_invalid_product_class_url ( )