Update application.py

This commit is contained in:
zandercymatics 2024-01-12 09:49:36 -07:00
parent 6f09c4b653
commit 5c5fcfcf86
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -185,7 +185,7 @@ class ApplicationWizard(ApplicationWizardPermissionView, TemplateView):
if name in incomplete_draft_names:
# Get the last numbered draft
last_draft = incomplete_drafts.last()
last_draft_number = last_draft.draft_number
last_draft_number = last_draft.requested_domain.draft_number
smallest_number = self._find_smallest_missing_number(incomplete_drafts)
smallest_name = f"New domain request {smallest_number}"