search in items, more
This commit is contained in:
parent
68ac25205d
commit
98ccb5276c
|
@ -28,7 +28,7 @@ class ItemAdmin(admin.ModelAdmin):
|
|||
ordering = ['-add_date']
|
||||
date_hierarchy = 'expire_date'
|
||||
actions = ['mark_item', 'unmark_item']
|
||||
search_fields = ['title', 'link']
|
||||
search_fields = ['title', 'description', 'comments', 'link']
|
||||
|
||||
def mark_item(modeladmin, request, queryset):
|
||||
queryset.update(mark=True)
|
||||
|
|
Reference in New Issue