mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-28 13:36:30 +02:00
blank value displays on portfolio and suborg, return ids in json
This commit is contained in:
parent
4e12b1295b
commit
b54017840e
3 changed files with 26 additions and 3 deletions
|
@ -8,6 +8,7 @@ from django.db.models.functions import Concat, Coalesce
|
|||
from django.http import HttpResponseRedirect
|
||||
from registrar.models.federal_agency import FederalAgency
|
||||
from registrar.utility.admin_helpers import (
|
||||
AutocompleteSelectWithPlaceholder,
|
||||
get_action_needed_reason_default_email,
|
||||
get_rejection_reason_default_email,
|
||||
get_field_links_as_list,
|
||||
|
@ -236,7 +237,17 @@ class DomainRequestAdminForm(forms.ModelForm):
|
|||
widgets = {
|
||||
"current_websites": NoAutocompleteFilteredSelectMultiple("current_websites", False),
|
||||
"alternative_domains": NoAutocompleteFilteredSelectMultiple("alternative_domains", False),
|
||||
"other_contacts": NoAutocompleteFilteredSelectMultiple("other_contacts", False)
|
||||
"other_contacts": NoAutocompleteFilteredSelectMultiple("other_contacts", False),
|
||||
'portfolio': AutocompleteSelectWithPlaceholder(
|
||||
DomainRequest._meta.get_field('portfolio'),
|
||||
admin.site,
|
||||
attrs={'data-placeholder': '---------'}
|
||||
),
|
||||
'sub_organization': AutocompleteSelectWithPlaceholder(
|
||||
DomainRequest._meta.get_field('sub_organization'),
|
||||
admin.site,
|
||||
attrs={'data-placeholder': '---------'}
|
||||
),
|
||||
}
|
||||
labels = {
|
||||
"action_needed_reason_email": "Email",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue