rcpch / national-paediatric-diabetes-audit

A django application to audit the care of children and young people with diabetes in England and Wales.
0 stars 1 forks source link

patient_count is not available in submission_history.html #384

Open reecehill opened 4 days ago

reecehill commented 4 days ago

When viewing the submission history page, submission.patient_count is not calculated/is unavailable.

This leaves the entire column empty: image Desktop display - See Patient Number column

The issue lies in submissions.py:49

base_queryset.values("submission_date", "audit_year").annotate(
....

should be

base_queryset = base_queryset.values("submission_date", "audit_year").annotate(
....

_Note that basequeryset must be mutated

A seemingly quick fix, but a series of errors follow. Hence, making an issue to be addressed separately.