mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-24 03:30:50 +02:00
Remove check for only status changes
This commit is contained in:
parent
a0fba816c2
commit
f042bb72f5
1 changed files with 1 additions and 4 deletions
|
@ -134,9 +134,6 @@ class DomainApplicationAdminForm(forms.ModelForm):
|
||||||
status = cleaned_data.get("status")
|
status = cleaned_data.get("status")
|
||||||
investigator = cleaned_data.get("investigator")
|
investigator = cleaned_data.get("investigator")
|
||||||
|
|
||||||
# Get the old status
|
|
||||||
initial_status = self.initial.get("status", None)
|
|
||||||
|
|
||||||
# We only care about investigator when in these statuses
|
# We only care about investigator when in these statuses
|
||||||
checked_statuses = [
|
checked_statuses = [
|
||||||
DomainApplication.ApplicationStatus.APPROVED,
|
DomainApplication.ApplicationStatus.APPROVED,
|
||||||
|
@ -147,7 +144,7 @@ class DomainApplicationAdminForm(forms.ModelForm):
|
||||||
]
|
]
|
||||||
|
|
||||||
# If a status change occured, check for validity
|
# If a status change occured, check for validity
|
||||||
if status != initial_status and status in checked_statuses:
|
if status in checked_statuses:
|
||||||
# Checks the "investigators" field for validity.
|
# Checks the "investigators" field for validity.
|
||||||
# That field must obey certain conditions when an application is approved.
|
# That field must obey certain conditions when an application is approved.
|
||||||
# Will call "add_error" if any issues are found.
|
# Will call "add_error" if any issues are found.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue