Set is_incomplete flag on post

This commit is contained in:
zandercymatics 2024-01-12 11:18:49 -07:00
parent 12206be956
commit 8b2a0c928d
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -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):