mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-19 19:09:22 +02:00
Add custom inline
This commit is contained in:
parent
25dfe81f10
commit
990a6f51e8
3 changed files with 59 additions and 1 deletions
|
@ -69,6 +69,7 @@ class DomainInformationInlineForm(forms.ModelForm):
|
|||
widgets = {
|
||||
"other_contacts": NoAutocompleteFilteredSelectMultiple("other_contacts", False),
|
||||
}
|
||||
template = "django/admin/domain_information_change_form.html"
|
||||
|
||||
|
||||
class DomainRequestAdminForm(forms.ModelForm):
|
||||
|
@ -1440,8 +1441,8 @@ class DomainInformationInline(admin.StackedInline):
|
|||
from DomainInformationAdmin"""
|
||||
|
||||
form = DomainInformationInlineForm
|
||||
|
||||
model = models.DomainInformation
|
||||
template = "django/admin/domain_information_inline_change_form.html"
|
||||
|
||||
fieldsets = copy.deepcopy(DomainInformationAdmin.fieldsets)
|
||||
# remove .gov domain from fieldset
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue