From 1285d4ca472b4239c6214cacddc9a1613a5c51b3 Mon Sep 17 00:00:00 2001 From: t Date: Wed, 6 Nov 2024 17:53:32 +0530 Subject: [PATCH 1/3] added new file --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 7985b078..ffebe461 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,9 @@ Contributing 2. Report any bugs/feature request as Github [new issue][new-issue], if it's already not present. 3. If you are starting to work on an issue, please leave a comment saying "I am working on it". 4. You can set up the project using the [Getting Started][getting-started] guide. + 5. Once you are done with feature/bug fix, send a pull request according to the [guidelines][guidelines]. [issue-list]: https://github.com/pythonindia/junction/issues/ From a550e6f1604dcd86bdba224ad2228fc2578d0b69 Mon Sep 17 00:00:00 2001 From: t Date: Wed, 6 Nov 2024 18:04:40 +0530 Subject: [PATCH 2/3] added new changes into Readme --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ffebe461..692c0bac 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,12 @@ Contributing 2. Report any bugs/feature request as Github [new issue][new-issue], if it's already not present. 3. If you are starting to work on an issue, please leave a comment saying "I am working on it". 4. You can set up the project using the [Getting Started][getting-started] guide. -pg config --> +->pg config +->uwsgi +->update pip +--> 5. Once you are done with feature/bug fix, send a pull request according to the [guidelines][guidelines]. [issue-list]: https://github.com/pythonindia/junction/issues/ From 94215d5d00534e229e6957c982e5b21f358d972c Mon Sep 17 00:00:00 2001 From: Ajay Malviya <128165665+Ajaymalviy@users.noreply.github.com> Date: Fri, 8 Nov 2024 16:43:36 +0530 Subject: [PATCH 3/3] Update views.py file as Making changes into list proposals function where proposal list was not show in any order now I added on this a method order by which show list of proposals collection in any order which we want to give as a parameter You can change created at to any other field that makes sense for your application . Add ordering to selected proposals listing - Added `.order_by('created_at')` to the `selected_proposals_list` query to ensure proposals are listed in the correct order based on creation date. - This resolves the issue of unordered selected proposals in the proposals listing page. - Maintained existing filtering and grouping of proposals while applying ordering. - Ensured consistent proposal ordering across both selected and public proposals. --- junction/proposals/views.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/junction/proposals/views.py b/junction/proposals/views.py index 450b379b..4fda974f 100644 --- a/junction/proposals/views.py +++ b/junction/proposals/views.py @@ -84,6 +84,15 @@ def _filter_proposals(request, proposals_qs): return is_filtered, filter_name, proposals_qs + + if proposal_type_filter: + proposals_qs = proposals_qs.filter(proposal_type=proposal_type_filter) + is_filtered = True + filter_name = proposal_type_filter + + return is_filtered, filter_name, proposals_qs + + @require_http_methods(["GET"]) def list_proposals(request, conference_slug): conference = get_object_or_404(Conference, slug=conference_slug) @@ -104,7 +113,7 @@ def list_proposals(request, conference_slug): # make sure it's after the tag filtering is applied selected_proposals_list = proposals_qs.filter( review_status=ProposalReviewStatus.SELECTED - ) + ).order_by('created_at') # Add order_by here to order by the desired field selected_proposals = collections.defaultdict(list) for proposal in selected_proposals_list: @@ -138,6 +147,7 @@ def list_proposals(request, conference_slug): ) + @login_required @require_http_methods(["GET", "POST"]) def create_proposal(request, conference_slug):