Use {% load url from future %} in speakers templates
Using https://github.com/futurecolors/django-future-url
This commit is contained in:
		
							parent
							
								
									76a5e08e2f
								
							
						
					
					
						commit
						9e2ceec7c4
					
				
					 3 changed files with 13 additions and 4 deletions
				
			
		|  | @ -1,5 +1,8 @@ | |||
| {% extends "speakers/base.html" %} | ||||
| 
 | ||||
| {% load url from future %} | ||||
| 
 | ||||
| 
 | ||||
| {% load bootstrap_tags %} | ||||
| {% load i18n %} | ||||
| {% load boxes_tags %} | ||||
|  | @ -17,7 +20,7 @@ | |||
|         </fieldset> | ||||
|         <div class="form-actions"> | ||||
|             <input class="btn btn-primary" type="submit" value="Save" /> | ||||
|             <a class="btn" href="{% url dashboard %}">Cancel</a> | ||||
|             <a class="btn" href="{% url 'dashboard' %}">Cancel</a> | ||||
|         </div> | ||||
|     </form> | ||||
| {% endblock %} | ||||
|  |  | |||
|  | @ -1,5 +1,8 @@ | |||
| {% extends "speakers/base.html" %} | ||||
| 
 | ||||
| {% load url from future %} | ||||
| 
 | ||||
| 
 | ||||
| {% load bootstrap_tags %} | ||||
| {% load i18n %} | ||||
| {% load boxes_tags %} | ||||
|  | @ -17,7 +20,7 @@ | |||
|         </fieldset> | ||||
|         <div class="form-actions"> | ||||
|             <input class="btn btn-primary" type="submit" value="Save" /> | ||||
|             <a class="btn" href="{% url dashboard %}">Cancel</a> | ||||
|             <a class="btn" href="{% url 'dashboard' %}">Cancel</a> | ||||
|         </div> | ||||
|     </form> | ||||
| {% endblock %} | ||||
|  |  | |||
|  | @ -1,5 +1,8 @@ | |||
| {% extends "site_base.html" %} | ||||
| 
 | ||||
| {% load url from future %} | ||||
| 
 | ||||
| 
 | ||||
| {% load i18n %} | ||||
| {% load thumbnail %} | ||||
| 
 | ||||
|  | @ -17,14 +20,14 @@ | |||
|         </div> | ||||
|         <div class="span6"> | ||||
|             {% if speaker.user == request.user or request.user.is_staff %} | ||||
|                 <a class="btn pull-right" href="{% url speaker_edit speaker.pk %}">Edit</a> | ||||
|                 <a class="btn pull-right" href="{% url 'speaker_edit' speaker.pk %}">Edit</a> | ||||
|             {% endif %} | ||||
|             <h1>{{ speaker.name }}</h1> | ||||
|             <div class="bio">{{ speaker.biography|safe }}</div> | ||||
|              | ||||
|             <h2>Presentations</h2> | ||||
|             {% for presentation in presentations %} | ||||
|                 <h3><a href="{% url schedule_presentation_detail presentation.pk %}">{{ presentation.title }}</a></h3> | ||||
|                 <h3><a href="{% url 'schedule_presentation_detail' presentation.pk %}">{{ presentation.title }}</a></h3> | ||||
|                 {% if presentation.slot %} | ||||
|                     <p> | ||||
|                         {{ presentation.slot.day.date|date:"l" }} | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Rebecca Lovewell
						Rebecca Lovewell