mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-21 03:27:21 -06:00
TreeManager should provide an unrestricted QuerySet for MPTT use
This commit is contained in:
parent
353d88f0a6
commit
327a93136a
@ -16,4 +16,8 @@ class TreeManager(Manager.from_queryset(TreeQuerySet), TreeManager_):
|
||||
"""
|
||||
Extend django-mptt's TreeManager to incorporate RestrictedQuerySet().
|
||||
"""
|
||||
pass
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user