Re: how to make field in admin edit view sortable

2009-07-04 Thread Joru
Thanks Karen this work perfectly On Jul 3, 10:05 pm, Karen Tracey wrote: > On Thu, Jul 2, 2009 at 11:52 PM, Joru wrote: > > > is this posible? > > Maybe. > > > > > anyone have solution for this? > > Searching for 'sort' on this page: > >

Re: how to make field in admin edit view sortable

2009-07-03 Thread Karen Tracey
On Thu, Jul 2, 2009 at 11:52 PM, Joru wrote: > > is this posible? Maybe. > > anyone have solution for this? > Searching for 'sort' on this page: http://docs.djangoproject.com/en/dev/ref/contrib/admin/ brings you to a description of the admin_order_field attribute of

Re: how to make field in admin edit view sortable

2009-07-02 Thread Joru
is this posible? anyone have solution for this? On Jul 2, 4:54 pm, Joru wrote: > I have following class > > class ProfileAdmin(UserAdmin): >     list_display = ('username', 'email', 'first_name', 'last_name', > 'is_staff', 'last_login', 'date_joined', 'city') >     def city

how to make field in admin edit view sortable

2009-07-02 Thread Joru
I have following class class ProfileAdmin(UserAdmin): list_display = ('username', 'email', 'first_name', 'last_name', 'is_staff', 'last_login', 'date_joined', 'city') def city (self,val): return str(val.profile.city) I need city to be sortable How can I do that?