Skip to content

Commit 798b12c

Browse files
committed
Admin page tweaks: another raw_id field, added search fields
- Legacy-Id: 16272
1 parent c9a7571 commit 798b12c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ietf/community/admin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88

99
class CommunityListAdmin(admin.ModelAdmin):
1010
list_display = [u'id', 'user', 'group']
11-
raw_id_fields = ['user', 'group']
11+
raw_id_fields = ['user', 'group', 'added_docs']
1212
admin.site.register(CommunityList, CommunityListAdmin)
1313

1414
class SearchRuleAdmin(admin.ModelAdmin):
1515
list_display = [u'id', 'community_list', 'rule_type', 'state', 'group', 'person', 'text']
1616
raw_id_fields = ['community_list', 'state', 'group', 'person', 'name_contains_index']
17+
search_fields = ['person__name', 'group__acronym', 'text', ]
1718
admin.site.register(SearchRule, SearchRuleAdmin)
1819

1920
class EmailSubscriptionAdmin(admin.ModelAdmin):

0 commit comments

Comments
 (0)