Explorar el Código

Use for loop counter to make FT pass

Benoît Hubert hace 7 años
padre
commit
a25e14eb38
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      movies/templates/home.html

+ 1 - 1
movies/templates/home.html

@@ -9,7 +9,7 @@
 
       <table id="movie-table">
         {% for movie in movies %}
-          <tr><td>1: {{ movie.title }}</td></tr>
+          <tr><td>{{ forloop.counter }}: {{ movie.title }}</td></tr>
         {% endfor %}
       </table>
   </body>