Skip to content

Commit

Permalink
autocomplete field for headquarter
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoriniere committed Feb 1, 2022
1 parent 198613e commit ab18c7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion django_sirene/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ class InstitutionAdmin(admin.ModelAdmin):
"updated",
"created",
)
raw_id_fields = ("headquarter", "legal_status", "municipality", "activity")
raw_id_fields = ("legal_status", "municipality", "activity")
autocomplete_fields = ("headquarter",)


admin.site.register(Institution, InstitutionAdmin)

0 comments on commit ab18c7a

Please sign in to comment.