#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# super ( ProfileForm , self ) . __init__ ( * args , ** kwargs ) #NEWLINE# if ( not up_settings . PROFILE_ALLOW_EMAIL_CHANGE ) : #NEWLINE# #INDENT# del self . fields [ 'email' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . fields . keyOrder . remove ( 'email' ) #NEWLINE# self . fields . keyOrder . insert ( 0 , 'email' ) #NEWLINE# #UNINDENT# if ( not up_settings . REGISTRATION_FULLNAME ) : #NEWLINE# #INDENT# del self . fields [ 'first_name' ] #NEWLINE# del self . fields [ 'last_name' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . fields . keyOrder . remove ( 'first_name' ) #NEWLINE# self . fields . keyOrder . remove ( 'last_name' ) #NEWLINE# self . fields . keyOrder . insert ( 0 , 'first_name' ) #NEWLINE# self . fields . keyOrder . insert ( 1 , 'last_name' )