def get_group_permission(codename):
    return Permission.objects.get(
        content_type__app_label='groups', codename=codename)
Helper to get a specific group permission
dataset/ETHPy150Open ofa/connect/open_connect/groups/tests/test_views.py/get_group_permission