Don't show watched movies in watchlist
This commit is contained in:
parent
d0494c8370
commit
80a09c8907
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user