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:
parent
7d242674f3
commit
0ce3299adb
6 changed files with 12 additions and 23 deletions
|
@ -1,5 +1,4 @@
|
|||
{% load static %}
|
||||
{% load urls_extra %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue