#NEWLINE# def all_with_perm( self , permission ) : #NEWLINE# #INDENT# '\n        Return all users that have the permission ``permission`` for this object.\n        ' #NEWLINE# perm = self . instance . perms . as_int ( permission ) #NEWLINE# qs = self . get_query_set ( ) #NEWLINE# new_qs = qs . extra ( where = [ 'permission & %s = %s' ] , params = [ perm , perm ] ) #NEWLINE# return perm