mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Closes #5139: Omit utilization statistics from RIR list
This commit is contained in:
@@ -283,9 +283,6 @@ class ObjectListView(ObjectPermissionRequiredMixin, View):
|
||||
response['Content-Disposition'] = 'attachment; filename="{}"'.format(filename)
|
||||
return response
|
||||
|
||||
# Provide a hook to tweak the queryset based on the request immediately prior to rendering the object list
|
||||
self.queryset = self.alter_queryset(request)
|
||||
|
||||
# Compile a dictionary indicating which permissions are available to the current user for this model
|
||||
permissions = {}
|
||||
for action in ('add', 'change', 'delete', 'view'):
|
||||
@@ -337,10 +334,6 @@ class ObjectListView(ObjectPermissionRequiredMixin, View):
|
||||
|
||||
return redirect(request.get_full_path())
|
||||
|
||||
def alter_queryset(self, request):
|
||||
# .all() is necessary to avoid caching queries
|
||||
return self.queryset.all()
|
||||
|
||||
def extra_context(self):
|
||||
return {}
|
||||
|
||||
|
Reference in New Issue
Block a user