From 38539a9d53607efd417bee8d4d1d930999e39d78 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Delobelle?=
Date: Sun, 21 Jan 2018 18:03:01 +0100
Subject: [PATCH] Name url to export calendar to ical
---
gestioncof/templates/gestioncof/calendar_subscription.html | 2 +-
gestioncof/tests/test_views.py | 2 +-
gestioncof/urls.py | 3 ++-
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/gestioncof/templates/gestioncof/calendar_subscription.html b/gestioncof/templates/gestioncof/calendar_subscription.html
index b13cb7f2..4b9e3cbb 100644
--- a/gestioncof/templates/gestioncof/calendar_subscription.html
+++ b/gestioncof/templates/gestioncof/calendar_subscription.html
@@ -12,7 +12,7 @@ souscrire aux événements du COF et/ou aux spectacles BdA.
{% if token %}
Votre calendrier (compatible avec toutes les applications d'agenda) se trouve à
-cette adresse.
+cette adresse.
- Pour l'ajouter à Thunderbird (lightning), il faut copier ce lien et aller
diff --git a/gestioncof/tests/test_views.py b/gestioncof/tests/test_views.py
index e33fe2f2..06d6be4a 100644
--- a/gestioncof/tests/test_views.py
+++ b/gestioncof/tests/test_views.py
@@ -70,7 +70,7 @@ class CalendarViewTests(ViewTestCaseMixin, TestCase):
class CalendarICSViewTests(ViewTestCaseMixin, TestCase):
- url_name = 'gestioncof.views.calendar_ics'
+ url_name = 'calendar.ics'
auth_user = None
auth_forbidden = []
diff --git a/gestioncof/urls.py b/gestioncof/urls.py
index 2be609b3..dde543a5 100644
--- a/gestioncof/urls.py
+++ b/gestioncof/urls.py
@@ -52,7 +52,8 @@ events_patterns = [
calendar_patterns = [
url(r'^subscription$', views.calendar,
name='calendar'),
- url(r'^(?P[a-z0-9-]+)/calendar.ics$', views.calendar_ics)
+ url(r'^(?P[a-z0-9-]+)/calendar.ics$', views.calendar_ics,
+ name='calendar.ics'),
]
clubs_patterns = [