list updated
This commit is contained in:
parent
b04c16f5d4
commit
2fd4dcf548
1 changed files with 1 additions and 2 deletions
|
@ -9,8 +9,7 @@ import models
|
||||||
|
|
||||||
class TextAdmin(admin.ModelAdmin):
|
class TextAdmin(admin.ModelAdmin):
|
||||||
search_fields = ['title', 'authors__name', 'languages__name']
|
search_fields = ['title', 'authors__name', 'languages__name']
|
||||||
list_display = ('title', 'version', 'file')
|
list_display = ('title', 'version', 'file', 'updated')
|
||||||
list_filter = ('authors', )
|
|
||||||
filter_horizontal = ('authors', )
|
filter_horizontal = ('authors', )
|
||||||
|
|
||||||
admin.site.register(models.Text, TextAdmin)
|
admin.site.register(models.Text, TextAdmin)
|
||||||
|
|
Loading…
Reference in a new issue