Use helper method for allowing submission

This commit is contained in:
Patrick Smith
2018-08-08 19:25:16 -04:00
parent 115c84680c
commit e1da908f93
3 changed files with 9 additions and 2 deletions

View File

@@ -143,7 +143,7 @@ class Requests(object):
"primary_poc",
]
existing_request_sections = request.body.keys()
return request.status == "incomplete" and all(
return request.status == RequestStatus.STARTED and all(
section in existing_request_sections for section in all_request_sections
)

View File

@@ -76,7 +76,7 @@ class JEDIRequestFlow(object):
@property
def can_submit(self):
return self.request and self.request.status != "incomplete"
return self.request and Requests.should_allow_submission(self.request)
@property
def next_screen(self):