Update application.py

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

View file

@ -211,8 +211,7 @@ class ApplicationWizard(ApplicationWizardPermissionView, TemplateView):
def _find_smallest_missing_number(self, incomplete_drafts):
draft_numbers = []
for draft in incomplete_drafts:
# Parse the number out of the text
number = draft.draft_number
number = draft.requested_domain.draft_number
if number is not None:
draft_numbers.append(number)