mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 20:18:38 +02:00
Set is_incomplete flag on post
This commit is contained in:
parent
12206be956
commit
8b2a0c928d
1 changed files with 8 additions and 0 deletions
|
@ -549,6 +549,14 @@ class DotgovDomain(ApplicationWizard):
|
|||
context["organization_type"] = self.application.organization_type
|
||||
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.save()
|
||||
return response
|
||||
|
||||
|
||||
class Purpose(ApplicationWizard):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue