Skip to content

Commit ff05978

Browse files
committed
add search to the doc states admin form. Commit ready for merge.
- Legacy-Id: 19921
1 parent 191d5b1 commit ff05978

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ietf/doc/admin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class StateTypeAdmin(admin.ModelAdmin):
2323
class StateAdmin(admin.ModelAdmin):
2424
list_display = ["slug", "type", 'name', 'order', 'desc']
2525
list_filter = ["type", ]
26+
search_fields = ["slug", "type__label", "type__slug", "name", "desc"]
2627
filter_horizontal = ["next_states"]
2728
admin.site.register(State, StateAdmin)
2829

0 commit comments

Comments
 (0)