diff options
-rw-r--r-- | app/jrnl/admin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/jrnl/admin.py b/app/jrnl/admin.py index 363d67a..3730167 100644 --- a/app/jrnl/admin.py +++ b/app/jrnl/admin.py @@ -22,7 +22,7 @@ class EntryAdmin(OSMGeoAdmin): def get_queryset(self, request): test_model_qs = super(EntryAdmin, self).get_queryset(request) - test_model_qs = test_model_qs.prefetch_related('related').prefetch_related('books') + test_model_qs = test_model_qs.prefetch_related('newrelated').prefetch_related('books') return test_model_qs |