Don't show watched movies in watchlist

This commit is contained in:
Michal Kunc 2023-01-17 19:25:18 +01:00
parent d0494c8370
commit 80a09c8907

View File

@ -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()