add sort name to admin list

This commit is contained in:
j 2009-08-28 12:04:09 +02:00
parent c69484f6b3
commit d2df21d8d2

View file

@ -16,7 +16,7 @@ admin.site.register(models.Text, TextAdmin)
class AuthorAdmin(admin.ModelAdmin):
search_fields = ['name']
list_display = ('name', )
list_display = ('name', 'name_sort')
admin.site.register(models.Author, AuthorAdmin)