Skip to content
Snippets Groups Projects
Commit bc3899eb authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Sort by the current leader of the submission

parent 38f747f8
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,7 @@ class SubmissionsTable(tables.Table): ...@@ -23,6 +23,7 @@ class SubmissionsTable(tables.Table):
class Meta: class Meta:
model = ApplicationSubmission model = ApplicationSubmission
order_by = ('-submit_time',)
fields = ('title', 'status_name', 'stage', 'page', 'round', 'submit_time') fields = ('title', 'status_name', 'stage', 'page', 'round', 'submit_time')
template = 'funds/tables/table.html' template = 'funds/tables/table.html'
row_attrs = { row_attrs = {
...@@ -41,6 +42,8 @@ class SubmissionsTable(tables.Table): ...@@ -41,6 +42,8 @@ class SubmissionsTable(tables.Table):
class AdminSubmissionsTable(SubmissionsTable): class AdminSubmissionsTable(SubmissionsTable):
"""Adds admin only columns to the submissions table""" """Adds admin only columns to the submissions table"""
lead = tables.Column(order_by=('lead.full_name',))
class Meta(SubmissionsTable.Meta): class Meta(SubmissionsTable.Meta):
fields = ('title', 'status_name', 'stage', 'page', 'round', 'lead', 'submit_time') # type: ignore fields = ('title', 'status_name', 'stage', 'page', 'round', 'lead', 'submit_time') # type: ignore
......
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