1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Remove extraneous prefetch_related() calls from object list views

This commit is contained in:
Jeremy Stretch
2020-10-30 16:52:40 -04:00
parent 97c8306eeb
commit 9a9babfc35
8 changed files with 39 additions and 58 deletions

View File

@@ -195,7 +195,8 @@ class ObjectListView(ObjectPermissionRequiredMixin, View):
"""
List a series of objects.
queryset: The queryset of objects to display
queryset: The queryset of objects to display. Note: Prefetching related objects is not necessary, as the
table will prefetch objects as needed depending on the columns being displayed.
filter: A django-filter FilterSet that is applied to the queryset
filter_form: The form used to render filter options
table: The django-tables2 Table used to render the objects list