I have a lecture view which I have paginated to 1 lecture per page. I have created a separate list of all the lectures which I want to use as a navigation side bar to the different lectures. I want that side bar to display the lecture titles as links and not numbers.
<ul class="">
{% for pg in lecture_single.paginator.page_range %}
{% for lecture_x in lecture_single %}
<li>
<a href="?page={{ pg }}" class="btn">{{ lecture.title }}</a>
</li>
{% endfor %}
{% endfor %}
</ul>
I tried using a for loops which did work in creating the links but all the lectures where being presented with the same title as opposed to a specific title for a different page