#NEWLINE# def get_form( self , request , obj = None , **kwargs ) : #NEWLINE# #INDENT# if ( ( obj is not None ) and obj . pk ) : #NEWLINE# #INDENT# kwargs [ 'fields' ] = [ ] #NEWLINE# return super ( UniqueActionAdmin , self ) . get_form ( request , obj = obj , ** kwargs ) #NEWLINE# #UNINDENT# form = super ( UniqueActionAdmin , self ) . get_form ( kwargs , obj = obj , ** kwargs ) #NEWLINE# form . base_fields [ 'model' ] = forms . ChoiceField ( choices = self . model_choices ( ) ) #NEWLINE# return form