> What you *can* do, if you're willing to be a bit adventurous, is pull
> out the content you want from the different models you want, and dump
> the results into one big list (a list doesn't care what types of
> objects it contains). Then you can take advantage of Python's
> list-sorting facilities to specify how you'd like to sort; for
> example, if all your models had a commonly-named field to represent
> their publication dates (e.g., each one has a DateTimeField
> representing the publication date, and all three use the same field
> name), it's relatively easy to get Python to sort the list by that
> field -- look at the 'sort' method of Python's List class, which lets
> you pass in custom comparison functions to be used in sorting.

Would you happen to have an example of how to do that? My models do
all have a similar date structure as you mentioned. And yes, I'm
willing to be a bit adventurous. :)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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