Skip to content

Commit

Permalink
fix prefetch
Browse files Browse the repository at this point in the history
  • Loading branch information
longhotsummer committed Nov 22, 2024
1 parent 4c5df3e commit e6bd95c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peachjam/views/document_nature.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class DocumentNatureListView(FilteredDocumentListView):
template_name = "peachjam/document_nature_list.html"
model = GenericDocument
queryset = GenericDocument.objects.prefetch_related("authors", "nature", "work")
queryset = GenericDocument.objects.prefetch_related("author", "nature", "work")

def get(self, *args, **kwargs):
self.document_nature = get_object_or_404(
Expand Down

0 comments on commit e6bd95c

Please sign in to comment.