Skip to content

Commit 9bbd501

Browse files
committed
Added a filter bar for state-type to the admin page for doc.models.State.
- Legacy-Id: 12968
1 parent 387068f commit 9bbd501

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
@@ -16,6 +16,7 @@ class StateTypeAdmin(admin.ModelAdmin):
1616

1717
class StateAdmin(admin.ModelAdmin):
1818
list_display = ["slug", "type", 'name', 'order', 'desc']
19+
list_filter = ["type__name", ]
1920
filter_horizontal = ["next_states"]
2021
admin.site.register(State, StateAdmin)
2122

0 commit comments

Comments
 (0)