1. Kevin Veroneau
  2. dvd-collection

Commits

Kevin Veroneau  committed 22bbcd6

Fixed bug when displaying watchlist movies where no movie poster is available.

  • Participants
  • Parent commits f479f90
  • Branches default

Comments (0)

Files changed (1)

File collection/templates/collection/watchlist_detail.html

View file
   {% for movie in watchlist.movies.all %}
   <li class="span4">
     <div class="thumbnail">
-      <a href="{{movie.get_absolute_url}}"><img src="{{movie.poster_img.url}}" alt="Movie Poster from IMdb"/></a>
+      <a href="{{movie.get_absolute_url}}"><img src="{% if movie.poster_img %}{{movie.poster_img.url}}{% endif %}" alt="{{movie.title}}"/></a>
       <h3>{{movie|link}}</h3>
       {% if user == watchlist.owner %}
       <p><a class="btn btn-danger" href="{% url 'movie_watchlist_remove' movie.slug %}"><i class="icon-remove"></i></a></p>