comments
This commit is contained in:
parent
100fe79b1d
commit
4b157ed1d1
15 changed files with 305 additions and 133 deletions
|
|
@ -14,7 +14,13 @@ admin.site.register(models.Item, ItemAdmin)
|
|||
|
||||
|
||||
class CommentAdmin(admin.ModelAdmin):
|
||||
search_fields = ['item__title', 'item__url', 'text', 'name', 'email']
|
||||
search_fields = [
|
||||
'item__title',
|
||||
'item__url',
|
||||
'text',
|
||||
'name',
|
||||
'email'
|
||||
]
|
||||
list_display = ['__str__', 'published']
|
||||
list_filter = (
|
||||
("published", admin.EmptyFieldListFilter),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue