Name url to export calendar to ical

This commit is contained in:
Aurélien Delobelle 2018-01-21 18:03:01 +01:00
parent acf284862a
commit 38539a9d53
3 changed files with 4 additions and 3 deletions

View file

@ -12,7 +12,7 @@ souscrire aux événements du COF et/ou aux spectacles BdA.
{% if token %}
<p>Votre calendrier (compatible avec toutes les applications d'agenda) se trouve à
<a href="{% url 'gestioncof.views.calendar_ics' token %}">cette adresse</a>.</p>
<a href="{% url 'calendar.ics' token %}">cette adresse</a>.</p>
<ul>
<li>Pour l'ajouter à Thunderbird (lightning), il faut copier ce lien et aller

View file

@ -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 = []

View file

@ -52,7 +52,8 @@ events_patterns = [
calendar_patterns = [
url(r'^subscription$', views.calendar,
name='calendar'),
url(r'^(?P<token>[a-z0-9-]+)/calendar.ics$', views.calendar_ics)
url(r'^(?P<token>[a-z0-9-]+)/calendar.ics$', views.calendar_ics,
name='calendar.ics'),
]
clubs_patterns = [