ソースを参照

Use for loop counter to make FT pass

Benoît Hubert 7 年 前
コミット
a25e14eb38
1 ファイル変更1 行追加1 行削除
  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>