Use {% load url from future %} in conference templates

Using https://github.com/futurecolors/django-future-url
This commit is contained in:
Rebecca Lovewell 2014-01-15 08:56:30 -05:00
parent 8857e7b760
commit 55d37c13bd

View file

@ -1,5 +1,8 @@
{% extends "site_base.html" %}
{% load url from future %}
{% load i18n %}
{% load sitetree %}
@ -68,9 +71,9 @@
<td>{{ user.get_full_name }}</td>
<td>
{% if user.speaker_profile %}
<a href="{% url speaker_profile user.speaker_profile.pk %}">{{ user.speaker_profile }}</a>
<a href="{% url 'speaker_profile' user.speaker_profile.pk %}">{{ user.speaker_profile }}</a>
{% else %}
<a href="{% url speaker_create_staff user.pk %}" class="btn btn-mini">create</a>
<a href="{% url 'speaker_create_staff' user.pk %}" class="btn btn-mini">create</a>
{% endif %}
</td>
</tr>