mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-01 18:18:34 +02:00
cleanup
This commit is contained in:
parent
c2e24f4fb9
commit
1cb380c030
2 changed files with 5 additions and 5 deletions
|
@ -99,7 +99,7 @@ class DomainApplicationAdmin(AuditedAdmin):
|
||||||
# transition condition is violated, so we call it on the
|
# transition condition is violated, so we call it on the
|
||||||
# original object which has the right status value, and pass
|
# original object which has the right status value, and pass
|
||||||
# the updated object which contains the up-to-date data
|
# the updated object which contains the up-to-date data
|
||||||
# for the side effects (like an email send). Same
|
# for the side effects (like an email send). Same
|
||||||
# comment applies to original_obj method calls below.
|
# comment applies to original_obj method calls below.
|
||||||
original_obj.submit(updated_domain_application=obj)
|
original_obj.submit(updated_domain_application=obj)
|
||||||
elif obj.status == models.DomainApplication.INVESTIGATING:
|
elif obj.status == models.DomainApplication.INVESTIGATING:
|
||||||
|
|
|
@ -500,9 +500,9 @@ class DomainApplication(TimeStampedModel):
|
||||||
@transition(field="status", source=[STARTED, WITHDRAWN], target=SUBMITTED)
|
@transition(field="status", source=[STARTED, WITHDRAWN], target=SUBMITTED)
|
||||||
def submit(self, updated_domain_application=None):
|
def submit(self, updated_domain_application=None):
|
||||||
"""Submit an application that is started.
|
"""Submit an application that is started.
|
||||||
|
|
||||||
As a side effect, an email notification is sent.
|
As a side effect, an email notification is sent.
|
||||||
|
|
||||||
This method is called in admin.py on the original application
|
This method is called in admin.py on the original application
|
||||||
which has the correct status value, but is passed the changed
|
which has the correct status value, but is passed the changed
|
||||||
application which has the up-to-date data that we'll use
|
application which has the up-to-date data that we'll use
|
||||||
|
@ -543,7 +543,7 @@ class DomainApplication(TimeStampedModel):
|
||||||
"""Investigate an application that has been submitted.
|
"""Investigate an application that has been submitted.
|
||||||
|
|
||||||
As a side effect, an email notification is sent.
|
As a side effect, an email notification is sent.
|
||||||
|
|
||||||
This method is called in admin.py on the original application
|
This method is called in admin.py on the original application
|
||||||
which has the correct status value, but is passed the changed
|
which has the correct status value, but is passed the changed
|
||||||
application which has the up-to-date data that we'll use
|
application which has the up-to-date data that we'll use
|
||||||
|
@ -563,7 +563,7 @@ class DomainApplication(TimeStampedModel):
|
||||||
object for the approved Domain and makes the user who created the
|
object for the approved Domain and makes the user who created the
|
||||||
application into an admin on that domain. It also triggers an email
|
application into an admin on that domain. It also triggers an email
|
||||||
notification.
|
notification.
|
||||||
|
|
||||||
This method is called in admin.py on the original application
|
This method is called in admin.py on the original application
|
||||||
which has the correct status value, but is passed the changed
|
which has the correct status value, but is passed the changed
|
||||||
application which has the up-to-date data that we'll use
|
application which has the up-to-date data that we'll use
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue