Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
longhotsummer committed Nov 22, 2024
1 parent 2ea29c8 commit 08d66c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions peachjam/fixtures/documents/sample_documents.json
Original file line number Diff line number Diff line change
Expand Up @@ -367,14 +367,14 @@
},
{
"fields": {
"authors": []
"author": []
},
"model": "peachjam.genericdocument",
"pk": 5389
},
{
"fields": {
"authors": []
"author": []
},
"model": "peachjam.genericdocument",
"pk": 4124
Expand Down
2 changes: 1 addition & 1 deletion peachjam/views/generic_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class DocumentListView(FilteredDocumentListView):
model = GenericDocument
navbar_link = "doc"
queryset = GenericDocument.objects.prefetch_related(
"authors", "nature", "work", "locality"
"author", "nature", "work", "locality"
)

def get_context_data(self, **kwargs):
Expand Down

0 comments on commit 08d66c6

Please sign in to comment.