Re: Using a paginator with two models in the same view

2014-02-12 Thread Fabio Caritas Barrionuevo da Luz
Please, if you can solve, create a post on a blog or a gist.github.com to resolution, and send to this topic. This can be useful for other people. XD -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop recei

Re: Using a paginator with two models in the same view

2014-02-11 Thread Some Developer
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

Re: Using a paginator with two models in the same view

2014-02-11 Thread C. Kirby
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.

Using a paginator with two models in the same view

2014-02-07 Thread Some Developer
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 thi