add sort name to admin list
This commit is contained in:
parent
c69484f6b3
commit
d2df21d8d2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue