Suppression de chemins hardcodés

- Dans la vue `partitions.views.download`, les chemins vers les
  sont calculés à partir des infos dans la BDD
- Le templatetag `cuturl` obsolète est supprimé
This commit is contained in:
Martin Pépin 2016-06-25 15:39:19 +02:00
parent 7d242674f3
commit 0ce3299adb
6 changed files with 12 additions and 23 deletions

View file

@ -1,5 +1,4 @@
{% load static %}
{% load urls_extra %}
<!DOCTYPE html>
<html lang="fr">

View file

@ -1,5 +1,4 @@
{% extends "base.html" %}
{% load urls_extra %}
{% block titre %}{{ p }}{% endblock %}
@ -38,7 +37,7 @@
{% endif %}
{% if user.is_authenticated %}
<a href="{% url "partitions.views.download" nom auteur p.part.url|cuturl %}" class="telecharger">Télécharger</a>
<a href="{% url "partitions.views.download" nom auteur p.id %}" class="telecharger">Télécharger</a>
{% endif %}
{% if user.profile.is_chef %}