diff --git a/apis_core/generic/views.py b/apis_core/generic/views.py index c1f2fc948..09d6e0bbc 100644 --- a/apis_core/generic/views.py +++ b/apis_core/generic/views.py @@ -52,11 +52,11 @@ def get_template_names(self): def get_permission_required(self): if hasattr(self, "permission_action_required"): - return [ - get_permission_codename( - self.permission_action_required, self.model._meta - ) - ] + permission_codename = get_permission_codename( + self.permission_action_required, self.model._meta + ) + permission = f"{self.model._meta.app_label}.{permission_codename}" + return [permission] return []