Fix marking movies as unwatched when not logged in.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
2e251d7444
commit
232245d602
@ -4,7 +4,7 @@
|
|||||||
<h1>Watchlist</h1>
|
<h1>Watchlist</h1>
|
||||||
<ul>
|
<ul>
|
||||||
{% for movie in object_list %}
|
{% 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 %} — {{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 %} — {{movie.score}}</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% if can_add_movie %}
|
{% if can_add_movie %}
|
||||||
|
Loading…
Reference in New Issue
Block a user