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:
>
>
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
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
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?
4 matches
Mail list logo