Changed a field to use raw_id to avoid choice fields with 90000 entries
- Legacy-Id: 16271
This commit is contained in:
parent
4bb1cec337
commit
c9a7571e0a
|
@ -1,5 +1,7 @@
|
|||
|
||||
# Copyright The IETF Trust 2017-2019, All Rights Reserved
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.contrib import admin
|
||||
|
||||
from ietf.community.models import CommunityList, SearchRule, EmailSubscription
|
||||
|
@ -11,7 +13,7 @@ admin.site.register(CommunityList, CommunityListAdmin)
|
|||
|
||||
class SearchRuleAdmin(admin.ModelAdmin):
|
||||
list_display = [u'id', 'community_list', 'rule_type', 'state', 'group', 'person', 'text']
|
||||
raw_id_fields = ['community_list', 'state', 'group', 'person']
|
||||
raw_id_fields = ['community_list', 'state', 'group', 'person', 'name_contains_index']
|
||||
admin.site.register(SearchRule, SearchRuleAdmin)
|
||||
|
||||
class EmailSubscriptionAdmin(admin.ModelAdmin):
|
||||
|
|
Loading…
Reference in a new issue