Skip to content
Snippets Groups Projects
Unverified Commit 3a021a60 authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #1709 from OpenTechFund/enhancement/round_admin_order_by_end_date

Order round admin by end date by default.
parents bb97f896 7a585f5b
No related branches found
No related tags found
No related merge requests found
...@@ -130,6 +130,7 @@ class ApplicationFormButtonHelper(ButtonHelper): ...@@ -130,6 +130,7 @@ class ApplicationFormButtonHelper(ButtonHelper):
class RoundAdminURLHelper(PageAdminURLHelper): class RoundAdminURLHelper(PageAdminURLHelper):
@cached_property @cached_property
def index_url(self): def index_url(self):
# By default set open filter for Round listing page's index URL # By default set open filter and sort on end date
params = {'form-state': 'open'} # for Round listing page's index URL
params = {'form-state': 'open', 'o': '-3'}
return f"{self.get_action_url('index')}?{urlencode(params)}" return f"{self.get_action_url('index')}?{urlencode(params)}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment