mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-28 13:36:30 +02:00
added minor space issues
This commit is contained in:
parent
a7ec0d573b
commit
c460e04380
1 changed files with 7 additions and 5 deletions
|
@ -1923,11 +1923,12 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
|
||||||
"suborganization_city",
|
"suborganization_city",
|
||||||
"suborganization_state_territory",
|
"suborganization_state_territory",
|
||||||
]
|
]
|
||||||
fieldsets = [
|
modified_fieldsets = []
|
||||||
(name, {**data, "fields": [f for f in data["fields"] if f not in excluded_fields]})
|
for name, data in fieldsets:
|
||||||
for name, data in fieldsets
|
fields = data.get("fields", [])
|
||||||
]
|
fields = tuple(field for field in fields if field not in excluded_fields)
|
||||||
|
modified_fieldsets.append((name, {**data, "fields": fields}))
|
||||||
|
return modified_fieldsets
|
||||||
return fieldsets
|
return fieldsets
|
||||||
|
|
||||||
# Trigger action when a fieldset is changed
|
# Trigger action when a fieldset is changed
|
||||||
|
@ -2120,6 +2121,7 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
|
||||||
we'll use the baseline readonly_fields and extend it as needed.
|
we'll use the baseline readonly_fields and extend it as needed.
|
||||||
"""
|
"""
|
||||||
readonly_fields = list(self.readonly_fields)
|
readonly_fields = list(self.readonly_fields)
|
||||||
|
|
||||||
# Check if the creator is restricted
|
# Check if the creator is restricted
|
||||||
if obj and obj.creator.status == models.User.RESTRICTED:
|
if obj and obj.creator.status == models.User.RESTRICTED:
|
||||||
# For fields like CharField, IntegerField, etc., the widget used is
|
# For fields like CharField, IntegerField, etc., the widget used is
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue