

def get_permission_name(action, model):
    return ('%s.%s' % (model._meta.app_label, get_permission_codename(action, model._meta)))

dataset/ETHPy150Open torchbox/wagtail/wagtail/wagtailsnippets/permissions.py get_permission_name/original