I have combine 2 queryset from different models into a list and used pagination to display as a single list.
The problem is the objects from the list are displayed b
You just need to sort your list of combined querysets by the created
attribute they both share:
from itertools import chain
...
posts = list(
sorted(
chain(picture,comment),
key=lambda objects: objects.created,
reverse=True # Optional
))
paginator = Paginator(posts, 5)
...
Here's a similar question on the topic