1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Standardize ObjectPermissionTest

This commit is contained in:
Jeremy Stretch
2020-06-08 14:01:15 -04:00
parent c1a37db871
commit 62224857f0
3 changed files with 15 additions and 83 deletions

View File

@@ -10,6 +10,7 @@ from django.db.models.signals import post_save
from django.dispatch import receiver
from django.utils import timezone
from utilities.querysets import RestrictedQuerySet
from utilities.utils import flatten_dict
@@ -262,6 +263,8 @@ class ObjectPermission(models.Model):
help_text="Queryset filter matching the applicable objects of the selected type(s)"
)
objects = RestrictedQuerySet.as_manager()
class Meta:
verbose_name = "Permission"