Hi,

I'm wanting to create a "tumblelog" of sorts made up of content from
several different models within my site and I'm looking for
suggestions on the best way of accomplishing it.  The two ideas I have
so far are:

1. Combine the results from different queries into one (as already
discussed here -
http://groups.google.com/group/django-users/browse_frm/thread/4a37a6b2cf6b34d6/d23994d6c6765170?lnk=gst&q=sorting&rnum=4#d23994d6c6765170)

2. Use the contenttypes framework and create a generic TumblelogItem
Model that would hold the content_type and ids of all the model items
I'd like to "tumble".  Something like...

class TumbleLogItem(models.Model):
    author = models.ForeignKey(User)
    pub_date = models.DateTimeField()
    content_type = models.ForeignKey(ContentType)
    object_id = models.PositiveIntegerField()
    content_object = models.GenericForeignKey()

Does anyone have any advice on the use of either of these two
options?  Or is there a better third way?

Thanks.
--~--~---------~--~----~------------~-------~--~----~
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