#NEWLINE# def get_requirements( self , config_entry ) : #NEWLINE# #INDENT# pk = config_entry . get ( 'id' ) #NEWLINE# if ( pk is not None ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# user = User . objects . get ( pk = pk ) #NEWLINE# #UNINDENT# except User . DoesNotExist : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( yield ProjectorRequirement ( view_class = UserViewSet , view_action = 'retrieve' , pk = str ( user . pk ) ) ) #NEWLINE# for group in user . groups . all ( ) : #NEWLINE# #INDENT# ( yield ProjectorRequirement ( view_class = GroupViewSet , view_action = 'retrieve' , pk = str ( group . pk ) ) )