mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-05 09:21:54 +02:00
Update application.py
This commit is contained in:
parent
fbea25c893
commit
6835397f97
1 changed files with 7 additions and 0 deletions
|
@ -468,6 +468,13 @@ class DotgovDomain(ApplicationWizard):
|
|||
context["federal_type"] = self.application.federal_type
|
||||
return context
|
||||
|
||||
def post(self, request, *args, **kwargs):
|
||||
"""Override for the post method to mark the DraftDomain as complete"""
|
||||
response = super().post(request, *args, **kwargs)
|
||||
# Set the DraftDomain to "complete"
|
||||
self.application.requested_domain.is_incomplete = False
|
||||
self.application.requested_domain.save()
|
||||
return response
|
||||
|
||||
class Purpose(ApplicationWizard):
|
||||
template_name = "application_purpose.html"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue