1
0
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:
Jeremy Stretch
2020-10-20 13:16:35 -04:00
parent 9cbfc0ce9a
commit 2e558ba031
4 changed files with 2 additions and 139 deletions

View File

@@ -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 {}