Skip to content

Commit

Permalink
simplify prefetch for legislation
Browse files Browse the repository at this point in the history
  • Loading branch information
longhotsummer committed Jul 16, 2024
1 parent 5120661 commit 162445d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions liiweb/views/legislation.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ class LegislationListView(FilteredDocumentListView):
variant = "current"
navbar_link = "legislation"
model = Legislation
queryset = Legislation.objects.prefetch_related(
"taxonomies", "taxonomies__topic", "work", "labels"
)
queryset = Legislation.objects.prefetch_related("work", "labels")
latest_expression_only = True
form_defaults = None

Expand Down

0 comments on commit 162445d

Please sign in to comment.