Skip to content

Commit f1ab32b

Browse files
authored
Fix concept note & proposal both appearing in user's dashboard (#4655)
<!-- Thanks for contributing to Hypha! Please ensure your contributions pass all necessary linting/testing and that the appropriate documentation has been updated. --> <!-- Describe briefly what your pull request changes. If this is resolving an issue, please specify below via "Fixes #<Github Issue ID>" --> Fixes #4651. Removes duplicate applications (concept note/proposal) from the user dashboard. Thanks for the fix suggestion @frjo! ## 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 --> - [ ] As an applicant, submit a concept note - [ ] As staff, invite said application to proposal - [ ] As previous applicant, ensure only the proposal shows up on the dashboard
1 parent 5d3c8a1 commit f1ab32b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

hypha/apply/dashboard/views_partials.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def my_active_submissions(user):
1717
.annotate(
1818
is_active=Case(When(status__in=active_statuses, then=True), default=False)
1919
)
20+
.current()
2021
.select_related("draft_revision")
2122
.order_by("-is_active", "-submit_time")
2223
.distinct()

0 commit comments

Comments
 (0)