Re: ordering by foreignkey again

2008-02-22 Thread bobhaugen
On Feb 22, 9:38 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > See the doc: > > http://www.djangoproject.com/documentation/model-api/#ordering > > where it states: "Note that, regardless of how many fields are in ordering, > the admin site uses only the first field." Ooops...how did I miss

Re: ordering by foreignkey again

2008-02-22 Thread Karen Tracey
On Fri, Feb 22, 2008 at 9:43 AM, bobhaugen <[EMAIL PROTECTED]> wrote: > > Tryingg to work around the problem: > > Previous Avail ordering statement: > > ordering = ('week', 'orders_product.name', > 'orders_producer.name',) > > Changed my models to have sortable foreign key values: > >

Re: ordering by foreignkey again

2008-02-22 Thread bobhaugen
Tryingg to work around the problem: Previous Avail ordering statement: > ordering = ('week', 'orders_product.name', 'orders_producer.name',) Changed my models to have sortable foreign key values: class Producer(models.Model): name = models.CharField(max_length=32, primary_key=True)

ordering by foreignkey again

2008-02-22 Thread bobhaugen
Django newbie wants admin list to be ordered by foreignkey names. I understand from googling that this is a known problem, and has apparently been fixed in the newforms admin branch. (Do I understand correctly?) Questions: 1. This is a new project. (On the other hand, I want to take it all