1. Kevin Veroneau
  2. dvd-collection

Source

dvd-collection / collection / templates / collection / watchlist_detail.html

Diff from to

File collection/templates/collection/watchlist_detail.html

  • Ignore whitespace
   {% 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>