#NEWLINE# def has_perm( self , user , perm , obj ) : #NEWLINE# #INDENT# ( content_type , permission ) = self . parse_perm ( obj ) #NEWLINE# results = self . orm [ 'guardian.userobjectpermission' ] . objects . filter ( permission = permission , content_type = content_type , user_id = user . id , object_pk = obj . id ) . count ( ) #NEWLINE# return bool ( results )