def get_user_obj_perms_model(obj):
 from guardian.models import UserObjectPermissionBase
 from guardian.models import UserObjectPermission
 return get_obj_perms_model(obj, UserObjectPermissionBase, UserObjectPermission)

def get_user_obj_perms_model ( obj ) : from guardian . models import UserObjectPermissionBase from guardian . models import UserObjectPermission return get_obj_perms_model ( obj , UserObjectPermissionBase , UserObjectPermission )
returns model class that connects given obj and user class .