mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-20 03:19:24 +02:00
remove .gov domain from domain form
This commit is contained in:
parent
5f60134d1d
commit
139e7f1183
1 changed files with 8 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
from datetime import date
|
from datetime import date
|
||||||
import logging
|
import logging
|
||||||
|
import copy
|
||||||
|
|
||||||
from django import forms
|
from django import forms
|
||||||
from django.db.models.functions import Concat, Coalesce
|
from django.db.models.functions import Concat, Coalesce
|
||||||
|
@ -1185,7 +1186,13 @@ class DomainInformationInline(admin.StackedInline):
|
||||||
|
|
||||||
model = models.DomainInformation
|
model = models.DomainInformation
|
||||||
|
|
||||||
fieldsets = DomainInformationAdmin.fieldsets
|
fieldsets = copy.deepcopy(DomainInformationAdmin.fieldsets)
|
||||||
|
# remove .gov domain from fieldset
|
||||||
|
for index, (title, _) in enumerate(fieldsets):
|
||||||
|
if title == ".gov domain":
|
||||||
|
del fieldsets[index]
|
||||||
|
break
|
||||||
|
|
||||||
analyst_readonly_fields = DomainInformationAdmin.analyst_readonly_fields
|
analyst_readonly_fields = DomainInformationAdmin.analyst_readonly_fields
|
||||||
# For each filter_horizontal, init in admin js extendFilterHorizontalWidgets
|
# For each filter_horizontal, init in admin js extendFilterHorizontalWidgets
|
||||||
# to activate the edit/delete/view buttons
|
# to activate the edit/delete/view buttons
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue