feat: add search in admin for ANs
This commit is contained in:
parent
50c1a4f2c6
commit
2641b2e7bf
@ -14,6 +14,7 @@ class StatusInline(admin.StackedInline):
|
|||||||
|
|
||||||
@admin.register(AdoptionNotice)
|
@admin.register(AdoptionNotice)
|
||||||
class AdoptionNoticeAdmin(admin.ModelAdmin):
|
class AdoptionNoticeAdmin(admin.ModelAdmin):
|
||||||
|
search_fields = ("name__contains", "description__contains")
|
||||||
inlines = [
|
inlines = [
|
||||||
StatusInline,
|
StatusInline,
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user