Fix marking movies as unwatched when not logged in.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michal Kunc 2023-02-10 11:53:07 +01:00
parent 2e251d7444
commit 232245d602

View File

@ -4,7 +4,7 @@
<h1>Watchlist</h1>
<ul>
{% for movie in object_list %}
<li><a href="{% url 'watchlist:detail' movie.id %}">{{movie.name}}</a>{% if movie not in voted_movies %}<sup>*</sup>{% endif %} &mdash; {{movie.score}}</li>
<li><a href="{% url 'watchlist:detail' movie.id %}">{{movie.name}}</a>{% if request.user.is_authenticated and movie not in voted_movies %}<sup>*</sup>{% endif %} &mdash; {{movie.score}}</li>
{% endfor %}
</ul>
{% if can_add_movie %}