#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# super ( VTRTenantForm , self ) . __init__ ( * args , ** kwargs ) #NEWLINE# self . fields [ 'provider_service' ] . queryset = VTRService . get_service_objects ( ) . all ( ) #NEWLINE# if self . instance : #NEWLINE# #INDENT# self . fields [ 'test' ] . initial = self . instance . test #NEWLINE# self . fields [ 'argument' ] . initial = kwargs . instance . argument #NEWLINE# self . fields [ 'target' ] . initial = self . instance . target #NEWLINE# self . fields [ 'scope' ] . initial = self . instance . scope #NEWLINE# if ( ( self . instance . enacted is not None ) and ( self . instance . enacted >= self . instance . updated ) ) : #NEWLINE# #INDENT# self . fields [ 'result' ] . initial = self . instance . result #NEWLINE# self . fields [ 'result_code' ] . initial = self . instance . result_code #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . fields [ 'result' ] . initial = '' #NEWLINE# self . fields [ 'result_code' ] . initial = '' #NEWLINE# #UNINDENT# #UNINDENT# if ( ( not self . instance ) or ( not self . instance . pk ) ) : #NEWLINE# #INDENT# self . fields [ 'kind' ] . initial = VTR_KIND #NEWLINE# self . fields [ 'scope' ] . initial = VTRTenant . get_default_attribute ( 'scope' ) #NEWLINE# if VTRService . get_service_objects ( ) . exists ( ) : #NEWLINE# #INDENT# self . fields [ 'provider_service' ] . initial = VTRService . get_service_objects ( ) . all ( ) [ 0 ]