{% if photos.has_previous %}
  • Prev
  • {% endif %} {% if photos.number %}
  • {{ photos.number }}
  • {% endif %} {% if photos.has_next %}
  • Next
  • {% endif %}