def get_group_obj_perms_model(obj):
 from guardian.models import GroupObjectPermissionBase
 from guardian.models import GroupObjectPermission
 return get_obj_perms_model(obj, GroupObjectPermissionBase, GroupObjectPermission)

def get_group_obj_perms_model ( obj ) : from guardian . models import GroupObjectPermissionBase from guardian . models import GroupObjectPermission return get_obj_perms_model ( obj , GroupObjectPermissionBase , GroupObjectPermission )
returns model class that connects given obj and group class .