display number of surveys completed

pull/1/head
eric 2016-06-13 14:32:29 -04:00
parent c1a960dfef
commit 3330677b47
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,8 @@
<dl> <dl>
{% for landing in work.landings.all %} {% for landing in work.landings.all %}
<dt>Configured survey: {{ landing }} </dt> <dt>Configured survey: {{ landing }} </dt>
<dd>Link: {{ landing.url }}</dd> <dd>Link: {{ landing.url }}<br />
Completed {{ landing.runinfohistory_set.all.count }} times</dd>
{% endfor %} {% endfor %}
</dl> </dl>
<a href="{% url 'new_survey' work.id %}">Set up a new survey</a> for this work. <a href="{% url 'new_survey' work.id %}">Set up a new survey</a> for this work.