Okay, this is the solution I came up with:

http://dpaste.com/16869/



On 14/08/2007, at 12:31 AM, James Tauber wrote:

>
>
> Imagine you have a Page model with a creation_time field and a many-
> to-many field of Categories.
>
> Clearly you can navigate through each page in creation order one by
> one with get_next_by_creation_time (which is quite awesome, really).
>
> But how might one do the same per category? i.e. for each category a
> given page is in, provide the next page in that category (ordered by
> creation time)?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to