Make photo albums work
[sommitrealweird.git] / sommitrealweird / photo / templates / photo / photo_list.html
similarity index 93%
rename from sommitrealweird/photo/templates/photo/photo_index.html
rename to sommitrealweird/photo/templates/photo/photo_list.html
index 27e441793c72123650a0718ef04893480dcebd97..558124307560aeedf937ad8a4acfd9abf3a936dd 100644 (file)
@@ -28,8 +28,8 @@
                 {% else %}
                     |
                 {% endif %}
-                {% ifequal paginator_page page %}
-                    {{ page }}
+                {% ifequal paginator_page page_obj.number %}
+                    {{ paginator_page }}
                 {% else %}
                     <a href="?page={{ paginator_page }}">{{ paginator_page }}</a>
                 {% endifequal %}