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
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
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.
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
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
admin.py:
--
from django.contrib import admin
from models import *
class PositionAdmin(admin.ModelAdmin):
list_display = ('description', 'order_first', 'order_second')
ordering = ('order_first'
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
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
8 matches
Mail list logo