Skip to content

Commit 03bdfa2

Browse files
committed
Added ability to create a project in a Complete state (#4627)
<!-- Thanks for contributing to Hypha! Please ensure your contributions pass all necessary linting/testing and that the appropriate documentation has been updated. --> Staff had requested to create a project in the state of `Completed`. This allows for that ## Test Steps <!-- If step does not require manual testing, skip/remove this section. Give a brief overview of the steps required for a user/dev to test this contribution. Important things to include: - Required user roles for where necessary (ie. "As a Staff Admin...") - Clear & validatable expected results (ie. "Confirm the submit button is now not clickable") - Language that can be understood by non-technical testers if being tested by users --> - [ ] Ensure a project can be created with the state of `Complete`
1 parent 47c9253 commit 03bdfa2

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

hypha/apply/projects/forms/utils.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from django.conf import settings
44

55
from hypha.apply.projects.models.project import (
6-
COMPLETE,
76
INTERNAL_APPROVAL,
87
PROJECT_STATUS_CHOICES,
98
)
@@ -16,9 +15,7 @@ def get_project_status_options() -> List[Tuple[str, str]]:
1615
being able to set these
1716
"""
1817
return [
19-
status
20-
for status in PROJECT_STATUS_CHOICES
21-
if status[0] not in [COMPLETE, INTERNAL_APPROVAL]
18+
status for status in PROJECT_STATUS_CHOICES if status[0] != INTERNAL_APPROVAL
2219
]
2320

2421

0 commit comments

Comments
 (0)