mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 03:58:39 +02:00
Fix bug with autocomplete on domains
This commit is contained in:
parent
7b227a26bb
commit
2aeb34c9eb
1 changed files with 8 additions and 0 deletions
|
@ -1088,6 +1088,14 @@ class DomainInformationInline(admin.StackedInline):
|
||||||
# to activate the edit/delete/view buttons
|
# to activate the edit/delete/view buttons
|
||||||
filter_horizontal = ("other_contacts",)
|
filter_horizontal = ("other_contacts",)
|
||||||
|
|
||||||
|
autocomplete_fields = [
|
||||||
|
"creator",
|
||||||
|
"domain_application",
|
||||||
|
"authorizing_official",
|
||||||
|
"domain",
|
||||||
|
"submitter",
|
||||||
|
]
|
||||||
|
|
||||||
def formfield_for_manytomany(self, db_field, request, **kwargs):
|
def formfield_for_manytomany(self, db_field, request, **kwargs):
|
||||||
"""customize the behavior of formfields with manytomany relationships. the customized
|
"""customize the behavior of formfields with manytomany relationships. the customized
|
||||||
behavior includes sorting of objects in lists as well as customizing helper text"""
|
behavior includes sorting of objects in lists as well as customizing helper text"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue