diff --git a/opentech/apply/funds/tables.py b/opentech/apply/funds/tables.py index e832c95e0b6b9cabb90552a53b025ee56fc85a84..689a196f533cb797e3932e13769da25fd11c4906 100644 --- a/opentech/apply/funds/tables.py +++ b/opentech/apply/funds/tables.py @@ -23,6 +23,7 @@ class SubmissionsTable(tables.Table): class Meta: model = ApplicationSubmission + order_by = ('-submit_time',) fields = ('title', 'status_name', 'stage', 'page', 'round', 'submit_time') template = 'funds/tables/table.html' row_attrs = { @@ -41,6 +42,8 @@ class SubmissionsTable(tables.Table): class AdminSubmissionsTable(SubmissionsTable): """Adds admin only columns to the submissions table""" + lead = tables.Column(order_by=('lead.full_name',)) + class Meta(SubmissionsTable.Meta): fields = ('title', 'status_name', 'stage', 'page', 'round', 'lead', 'submit_time') # type: ignore