Use {% load url from future %} in conference templates
Using https://github.com/futurecolors/django-future-url
This commit is contained in:
parent
8857e7b760
commit
55d37c13bd
1 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
||||||
{% extends "site_base.html" %}
|
{% extends "site_base.html" %}
|
||||||
|
|
||||||
|
{% load url from future %}
|
||||||
|
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load sitetree %}
|
{% load sitetree %}
|
||||||
|
|
||||||
|
@ -68,9 +71,9 @@
|
||||||
<td>{{ user.get_full_name }}</td>
|
<td>{{ user.get_full_name }}</td>
|
||||||
<td>
|
<td>
|
||||||
{% if user.speaker_profile %}
|
{% 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 %}
|
{% 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 %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in a new issue