#NEWLINE# def get_form( self , form_class ) : #NEWLINE# #INDENT# form = super ( InviteCreateView , self ) . get_form ( form_class ) #NEWLINE# if ( not self . request . user . is_superuser ) : #NEWLINE# #INDENT# del form . fields [ 'is_superuser' ] #NEWLINE# form . fields [ 'groups' ] . queryset = self . request . user . groups_joined #NEWLINE# #UNINDENT# if ( not self . request . user . is_staff ) : #NEWLINE# #INDENT# del form . fields [ 'is_staff' ] #NEWLINE# #UNINDENT# return form