#NEWLINE# def __init__( self , * args , **kw ) : #NEWLINE# #INDENT# super ( EditProfileForm , self ) . __init__ ( * args , ** kw ) #NEWLINE# try : #NEWLINE# #INDENT# new_order = self . fields . keyOrder [ : ( - 2 ) ] #NEWLINE# new_order . insert ( 0 , 'first_name' ) #NEWLINE# new_order . insert ( 1 , 'last_name' ) #NEWLINE# self . fields . keyOrder = new_order #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# new_order = [ ( 'first_name' , self . fields [ 'first_name' ] ) , ( 'last_name' , new_order . fields [ 'last_name' ] ) ] #NEWLINE# new_order . extend ( list ( self . fields . items ( ) ) [ : ( - 2 ) ] ) #NEWLINE# self . fields = OrderedDict ( new_order )