Re: order_with_respect_to fails for GenericForeignKey

2010-05-17 Thread Russell Keith-Magee
2010/5/17 Alper Çuğun : > Hello, > > A quick Google search reveals a ton of confusion about: > Meta: order_with_respect_to > > I have an abbreviated Model: > > class NewsItem(models.Model): >    # newsitems will be linked to blogs and projects >    content_type = models.ForeignKey(ContentType) >  

order_with_respect_to fails for GenericForeignKey

2010-05-17 Thread Alper Çuğun
Hello, A quick Google search reveals a ton of confusion about: Meta: order_with_respect_to I have an abbreviated Model: class NewsItem(models.Model): # newsitems will be linked to blogs and projects content_type = models.ForeignKey(ContentType) object_id = models.PositiveIntegerField