From a0a6cf8e0dc8b851360946ec8364762537743193 Mon Sep 17 00:00:00 2001
From: Todd Dembrey <todd.dembrey@torchbox.com>
Date: Mon, 3 Sep 2018 09:27:12 +0100
Subject: [PATCH] Tidy up spelling errors

---
 opentech/apply/funds/models/submissions.py                      | 2 +-
 opentech/apply/funds/templates/funds/tables/column_reviews.html | 2 +-
 opentech/apply/funds/templates/funds/tables/table.html          | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/opentech/apply/funds/models/submissions.py b/opentech/apply/funds/models/submissions.py
index cec869086..3a2d2c652 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 7526c291f..e7c0666c7 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 1438fc196..9a7848ff7 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 %}
                                 &mdash;
                             {% endif %}
-- 
GitLab