diff options
Diffstat (limited to 'app/jrnl')
-rw-r--r-- | app/jrnl/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/jrnl/views.py b/app/jrnl/views.py index 7ea3e41..ed5018b 100644 --- a/app/jrnl/views.py +++ b/app/jrnl/views.py @@ -139,7 +139,7 @@ class JrnlLatestView(EntryDetailView): template_name = "details/entry_latest.html" def get_object(self, queryset=None): - obj = self.model.objects.latest() + obj = self.model.objects.filter(status=1).latest() self.location = obj.location return obj |