add number of events to speaker list
This commit is contained in:
parent
35856f6347
commit
a8844fa72b
|
@ -10,7 +10,7 @@
|
|||
{% for speaker in speaker_list %}
|
||||
<a href="{% url 'schedule:speaker_detail' slug=speaker.slug %}" class="list-group-item">
|
||||
{{ speaker.name }}
|
||||
</a>
|
||||
</a> ({{ speaker.events.all.count }} event{{ speaker.events.all.count|pluralize }})
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endblock content %}
|
||||
|
|
Loading…
Reference in a new issue