diff --git a/opentech/apply/funds/models/submissions.py b/opentech/apply/funds/models/submissions.py index cec86908626358c47625e130c49ec2e894a51c69..3a2d2c6522c83f8cdbb6cf00f4a3cdfa70b6fa54 100644 --- a/opentech/apply/funds/models/submissions.py +++ b/opentech/apply/funds/models/submissions.py @@ -121,7 +121,7 @@ class ApplicationSubmissionQueryset(JSONOrderable): reviews.submitted().values('submission').annotate(count=Count('pk')).values('count'), output_field=IntegerField(), ), - review_reccomendation=Subquery( + review_recommendation=Subquery( reviews.submitted().values('submission').annotate(calc_recommendation=Sum('recommendation') / Count('recommendation')).values('calc_recommendation'), output_field=IntegerField(), ), diff --git a/opentech/apply/funds/templates/funds/tables/column_reviews.html b/opentech/apply/funds/templates/funds/tables/column_reviews.html index 7526c291fdd44cb9e496892760ab02a0ad50a132..e7c0666c71162315af50875493787a39b6734ce6 100644 --- a/opentech/apply/funds/templates/funds/tables/column_reviews.html +++ b/opentech/apply/funds/templates/funds/tables/column_reviews.html @@ -10,6 +10,6 @@ {% endif %} </td> <td class="reviews-summary__td">{{ record.review_submitted_count|default:'0' }}</td> - <td class="reviews-summary__td">{{ record.review_reccomendation|traffic_light }}</td> + <td class="reviews-summary__td">{{ record.review_recommendation|traffic_light }}</td> </tr> </table> diff --git a/opentech/apply/funds/templates/funds/tables/table.html b/opentech/apply/funds/templates/funds/tables/table.html index 1438fc1969b6f4d8f47493127c050d589c0ec872..9a7848ff770c3d0dd7df0cfb57a6be91f56c75d5 100644 --- a/opentech/apply/funds/templates/funds/tables/table.html +++ b/opentech/apply/funds/templates/funds/tables/table.html @@ -25,7 +25,7 @@ <td> {% if submission.last_update %} <strong>by {{ submission.last_user_update }}</strong><br/> - {{ submissino.last_update|date:"Y-m-d \a\t H:i" }} + {{ submission.last_update|date:"Y-m-d \a\t H:i" }} {% else %} — {% endif %}