mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-19 20:02:22 -06:00
Remove restriction enforcement from RestrictedQuerySet
This commit is contained in:
@@ -16,8 +16,4 @@ class TreeManager(Manager.from_queryset(TreeQuerySet), TreeManager_):
|
||||
"""
|
||||
Extend django-mptt's TreeManager to incorporate RestrictedQuerySet().
|
||||
"""
|
||||
def db_manager(self, using=None, hints=None):
|
||||
manager = super().db_manager(using, hints)
|
||||
|
||||
# Return an unrestricted QuerySet for use by MPTT
|
||||
return manager.unrestricted()
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user