Update application.py

This commit is contained in:
zandercymatics 2024-01-12 10:53:15 -07:00
parent fbea25c893
commit 6835397f97
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -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"