From 80a09c8907fced520d68b977b03aca257a5b09b8 Mon Sep 17 00:00:00 2001 From: Michal Kunc Date: Tue, 17 Jan 2023 19:25:18 +0100 Subject: [PATCH] Don't show watched movies in watchlist --- watchlist/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watchlist/views.py b/watchlist/views.py index 8cd4794..01945ba 100644 --- a/watchlist/views.py +++ b/watchlist/views.py @@ -29,7 +29,7 @@ class IndexView(generic.ListView): model = models.Movie def get_queryset(self): - return models.Movie.objects.order_by('id').all() + return models.Movie.objects.filter(watched=False).order_by('id').all() def get_context_data(self): context = super().get_context_data()