Closed gavin-dev21 closed 1 year ago
@gavin-dev21 you can use the existing dashboard
view to reuse the QuerySets. You could do the following:
image_list
view in the existing dashboard
view to implement a Paginator
images_only
to differentiate a whole page request from an AJAX request.dashboard.html
template for the whole page request or render a new action/list.html
template for AJAX requests.action/list.html
template and use the {% for action in actions %} ... {% endfor %}
loop from the dashboard.html
template to render actions.dashboard.html
templatePerfect, thank you! I got it to work.
Hello, on page 312 it states that you can add the AJAX paginator that you used in the image_list view to the activity stream. I'm wondering how that is done? Do you create a whole new view in actions in order to allow infinite pagination? Or is there a way to use the existing code to implement the same feature but for the activity stream? Any help would be appreciated!