From 08d66c608e9667fca9bbc52da8c54ba55b128371 Mon Sep 17 00:00:00 2001 From: Greg Kempe Date: Fri, 22 Nov 2024 11:50:50 +0200 Subject: [PATCH] tests --- peachjam/fixtures/documents/sample_documents.json | 4 ++-- peachjam/views/generic_document.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/peachjam/fixtures/documents/sample_documents.json b/peachjam/fixtures/documents/sample_documents.json index efdfc977b..870df9a28 100644 --- a/peachjam/fixtures/documents/sample_documents.json +++ b/peachjam/fixtures/documents/sample_documents.json @@ -367,14 +367,14 @@ }, { "fields": { - "authors": [] + "author": [] }, "model": "peachjam.genericdocument", "pk": 5389 }, { "fields": { - "authors": [] + "author": [] }, "model": "peachjam.genericdocument", "pk": 4124 diff --git a/peachjam/views/generic_document.py b/peachjam/views/generic_document.py index 52e9148d3..02e0cc84a 100644 --- a/peachjam/views/generic_document.py +++ b/peachjam/views/generic_document.py @@ -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):