This commit is contained in:
j 2023-07-16 11:26:14 +05:30
commit 4b157ed1d1
15 changed files with 305 additions and 133 deletions

View file

@ -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),