Ah, I didn't realise that.
I think I should be able to do the transformation pretty easily. Thanks
for the info that has sorted out a rather irrating problem I have been
having. I'll give that a try tomorrow when I have some free time.
On 11/02/2014 17:52, C. Kirby wrote:
Paginator will work on any list/tuple of objects, not just querysets.
If you have a way to transform your 2 querysets into a single list you
can use that as your pagination object.
Not knowing enough about your architecture I can't really discuss how
you might go about the transformation step.
On Friday, February 7, 2014 10:46:54 AM UTC-6, Some Developer wrote:
I have two models: Thread and EmailThread. As the names suggest the
Thread model relates to threads created via the web interface and the
EmailThread model relates to threads created via email.
I want to display a list of all threads from both models on the same
page and I want to paginate this page. If there was only a single
model
to paginate the page by then it would be easy but I'm having
difficulty
finding a way to paginate a page that has two models listed on the
same
page.
Can anyone suggest an option? I guess I could split them so that each
model had its own listing view but that seems a bit messy to me. It
would be much nicer if they were held on the same page.
Thanks for any help.
--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/da0342f4-c89d-4d38-8c00-a3a91539cf3c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/52FACAEA.50103%40googlemail.com.
For more options, visit https://groups.google.com/groups/opt_out.