Add georegion to raw_id_fields for government admin
This commit is contained in:
parent
433f1faeff
commit
f012ac057f
1 changed files with 1 additions and 0 deletions
|
|
@ -53,6 +53,7 @@ class GovernmentAdmin(admin.ModelAdmin):
|
||||||
prepopulated_fields = {"slug": ("name",)}
|
prepopulated_fields = {"slug": ("name",)}
|
||||||
list_display = ("name", "public", "start_date", "end_date")
|
list_display = ("name", "public", "start_date", "end_date")
|
||||||
list_filter = ("public",)
|
list_filter = ("public",)
|
||||||
|
raw_id_fields = ("georegion",)
|
||||||
|
|
||||||
|
|
||||||
def execute_assign_organization(admin, request, queryset, action_obj):
|
def execute_assign_organization(admin, request, queryset, action_obj):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue