Re: Bad SQL when ordering a model by related models

2007-04-10 Thread Atilla
> - structure/models.py > class Issue(models.Model): > (...) > pub_date = models.DateField('Publication date', unique=True) > (...) > > class Meta: > ordering = ['-pub_date'] > - > > - stories/models.py > class Story(models.Model): > (...) > issue =

Bad SQL when ordering a model by related models

2007-04-06 Thread chrominance
I'm having problems with ordering based on related fields that may be a clone of the issue brought up in ticket 1576 (http:// code.djangoproject.com/ticket/1576), though because that problem was so old and the ticket was closed I wasn't sure where I should bring this up. Also, it could just be my