Skip to content

Commit

Permalink
Merge pull request #733 from communitiesuk/bau/flask-admin-reporting-…
Browse files Browse the repository at this point in the history
…round

Update admin view to use new reporting round entity
  • Loading branch information
samuelhwilliams authored Sep 24, 2024
2 parents bdc5c19 + dddab5e commit 1f3bc2e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions admin/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class SubmissionAdminView(BaseAdminView):
column_list = [
Submission.submission_id,
"programme_junction.programme_ref.fund.fund_code",
"programme_junction.reporting_round",
"programme_junction.reporting_round_entity.round_number",
Submission.submission_date,
"programme_junction.programme_ref.programme_id",
"programme_junction.programme_ref.organisation.organisation_name",
Expand All @@ -74,18 +74,18 @@ class SubmissionAdminView(BaseAdminView):
"programme_junction.programme_ref.programme_id": "Programme ID",
"programme_junction.programme_ref.organisation.organisation_name": "Organisation",
"programme_junction.programme_ref.fund.fund_code": "Fund code",
"programme_junction.reporting_round": "Reporting round",
"programme_junction.reporting_round_entity.round_number": "Reporting round",
}
column_sortable_list = [
Submission.submission_id,
"programme_junction.programme_ref.organisation.organisation_name",
"programme_junction.reporting_round",
"programme_junction.reporting_round_entity.round_number",
Submission.submission_date,
]
column_searchable_list = [Submission.id, Submission.submission_id]
column_default_sort = [("programme_junction.reporting_round", True)]
column_default_sort = [("programme_junction.reporting_round_entity.round_number", True)]
column_filters = [
"programme_junction.reporting_round",
"programme_junction.reporting_round_entity.round_number",
"programme_junction.programme_ref.fund.fund_code",
"programme_junction.programme_ref.programme_id",
"programme_junction.programme_ref.organisation.organisation_name",
Expand Down

0 comments on commit 1f3bc2e

Please sign in to comment.