Re: Cannot get admin to order rows properly

2009-04-06 Thread Malcolm Tredinnick
On Mon, 2009-04-06 at 13:27 -0400, Karen Tracey wrote: [...] > > Multi-column ordering has been requested before, you might try > searching the list and tracker for details on why it's not being done > now. One of the big reasons this isn't available is that it's quite a challenging UI problem

Re: Cannot get admin to order rows properly

2009-04-06 Thread Andrew Grossman
Thank you. On Apr 6, 1:27 pm, Karen Tracey wrote: > On Mon, Apr 6, 2009 at 11:13 AM, Andrew Grossman wrote: > > > > > I am trying to specify multiple columns for Django to order row in the > > admin change list by, but it seems to only be interested in ordering > > by the first column.  Am I doi

Re: Cannot get admin to order rows properly

2009-04-06 Thread Karen Tracey
On Mon, Apr 6, 2009 at 11:13 AM, Andrew Grossman wrote: > > I am trying to specify multiple columns for Django to order row in the > admin change list by, but it seems to only be interested in ordering > by the first column. Am I doing something wrong here? > The admin only orders by one column.

Re: Cannot get admin to order rows properly

2009-04-06 Thread Andrew Grossman
http://i659.photobucket.com/albums/uu319/tsqd/ djangoorder.png"/> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe

Re: Cannot get admin to order rows properly

2009-04-06 Thread Andrew Grossman
Result: http://i659.photobucket.com/albums/uu319/tsqd/djangoorder.png (google groups seems to have issues with these links) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: Cannot get admin to order rows properly

2009-04-06 Thread Andrew Grossman
admin.py: -- from django.contrib import admin from models import * class PositionAdmin(admin.ModelAdmin): list_display = ('description', 'order_first', 'order_second') ordering = ('order_first'

Re: Cannot get admin to order rows properly

2009-04-06 Thread Andrew Grossman
models.py: -- from django.db import models class Position(models.Model): order_first = models.IntegerField(db_index=True) order_second = models.IntegerField() description = models.CharField(max_len

Cannot get admin to order rows properly

2009-04-06 Thread Andrew Grossman
I am trying to specify multiple columns for Django to order row in the admin change list by, but it seems to only be interested in ordering by the first column. Am I doing something wrong here? --~--~-~--~~~---~--~~ You received this message because you are subs