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

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

@@ -8,7 +8,6 @@ from extras.utils import extras_features
from netbox.models import ChangeLoggedModel, PrimaryModel
from ipam.choices import *
from ipam.constants import *
from utilities.querysets import RestrictedQuerySet
__all__ = (
'FHRPGroup',
@@ -50,8 +49,6 @@ class FHRPGroup(PrimaryModel):
related_query_name='fhrpgroup'
)
objects = RestrictedQuerySet.as_manager()
clone_fields = ('protocol', 'auth_type', 'auth_key')
class Meta:
@@ -87,8 +84,6 @@ class FHRPGroupAssignment(ChangeLoggedModel):
)
)
objects = RestrictedQuerySet.as_manager()
clone_fields = ('interface_type', 'interface_id')
class Meta: