#NEWLINE# def queryset( self , request ) : #NEWLINE# #INDENT# user = request . user #NEWLINE# if ( user . is_superuser or user . has_perm ( 'permissions.change_foreign_permissions' ) ) : #NEWLINE# #INDENT# return super ( PermissionAdmin , self ) . queryset ( request ) #NEWLINE# #UNINDENT# return super ( PermissionAdmin , self ) . queryset ( request ) . filter ( creator = self )