Housekeeping: Use RestrictedQuerySet for default manager on base models

This commit is contained in:
jeremystretch
2021-11-11 15:04:22 -05:00
parent 834f68e6e4
commit d529c1b5b3
21 changed files with 7 additions and 108 deletions

View File

@@ -11,7 +11,6 @@ from ipam.choices import *
from ipam.constants import *
from ipam.querysets import VLANQuerySet
from netbox.models import OrganizationalModel, PrimaryModel
from utilities.querysets import RestrictedQuerySet
from virtualization.models import VMInterface
@@ -52,8 +51,6 @@ class VLANGroup(OrganizationalModel):
blank=True
)
objects = RestrictedQuerySet.as_manager()
class Meta:
ordering = ('name', 'pk') # Name may be non-unique
unique_together = [