mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixed Prefix list hierarchy
This commit is contained in:
@@ -52,6 +52,9 @@ class ObjectListView(View):
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
# Provide a hook to tweak the queryset based on the request immediately prior to rendering the object list
|
||||
self.queryset = self.alter_queryset(request)
|
||||
|
||||
# Construct the table based on the user's permissions
|
||||
if any([request.user.has_perm(perm) for perm in self.edit_table_permissions]):
|
||||
table = self.edit_table(self.queryset)
|
||||
@@ -68,6 +71,9 @@ class ObjectListView(View):
|
||||
'export_templates': export_templates,
|
||||
})
|
||||
|
||||
def alter_queryset(self, request):
|
||||
return self.queryset
|
||||
|
||||
|
||||
class BulkImportView(View):
|
||||
form = None
|
||||
|
Reference in New Issue
Block a user