Skip to content

Commit 470ff97

Browse files
committed
efficient querying of many2many on admin page
1 parent 969e806 commit 470ff97

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

electionpage/admin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
class ElectionPageAdmin(admin.ModelAdmin):
1010
""" Administer election pages """
1111
view_on_site = True
12+
autocomplete_fields = ['listOfElections']
1213

1314

1415
@admin.register(ScrapableElectionPage)

0 commit comments

Comments
 (0)