From 66214f7ff2b8c851726ae69d101c4feb897b1efd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Wed, 13 Jul 2016 01:07:57 +0200 Subject: [PATCH 1/2] Typos --- gestioncof/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gestioncof/models.py b/gestioncof/models.py index badf7533..540145d5 100644 --- a/gestioncof/models.py +++ b/gestioncof/models.py @@ -94,7 +94,8 @@ class CustomMail(models.Model): blank=True) class Meta: - verbose_name = "Mails personnalisables" + verbose_name = "Mail personnalisable" + verbose_name_plural = "Mails personnalisables" def __unicode__(self): return u"%s: %s" % (self.shortname, self.title) @@ -158,6 +159,7 @@ class EventOptionChoice(models.Model): class Meta: verbose_name = "Choix" + verbose_name_plural = "Choix" def __unicode__(self): return unicode(self.value) From a24ca5a19b680429d027a4b82e4b55f1c529c3e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Thu, 14 Jul 2016 19:31:07 +0200 Subject: [PATCH 2/2] Corrige les urls du BdA MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le `^` de début de regex a été oublié -> Les urls avaient un étrange, par exemple `bda/etat-places` et `bda/places` pointaient vers la même vue --- bda/urls.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/bda/urls.py b/bda/urls.py index 47a946ba..268bb352 100644 --- a/bda/urls.py +++ b/bda/urls.py @@ -5,33 +5,33 @@ from bda.views import SpectacleListView urlpatterns = patterns( '', - url(r'inscription/(?P\d+)$', + url(r'^inscription/(?P\d+)$', 'bda.views.inscription', name='bda-tirage-inscription'), - url(r'places/(?P\d+)$', + url(r'^places/(?P\d+)$', 'bda.views.places', name="bda-places-attribuees"), - url(r'places/(?P\d+)/places_bda.ics$', + url(r'^places/(?P\d+)/places_bda.ics$', 'bda.views.places_ics', name="bda-places-attribuees-ics"), - url(r'revente/(?P\d+)$', + url(r'^revente/(?P\d+)$', 'bda.views.revente', name='bda-revente'), - url(r'etat-places/(?P\d+)$', + url(r'^etat-places/(?P\d+)$', 'bda.views.etat_places', name='bda-etat-places'), - url(r'tirage/(?P\d+)$', 'bda.views.tirage'), - url(r'spectacles/(?P\d+)$', + url(r'^tirage/(?P\d+)$', 'bda.views.tirage'), + url(r'^spectacles/(?P\d+)$', SpectacleListView.as_view(), name="bda-liste-spectacles"), - url(r'spectacles/(?P\d+)/(?P\d+)$', + url(r'^spectacles/(?P\d+)/(?P\d+)$', "bda.views.spectacle", name="bda-spectacle"), - url(r'spectacles-ics/(?P\d+)$', + url(r'^spectacles-ics/(?P\d+)$', 'bda.views.liste_spectacles_ics', name="bda-liste-spectacles-ics"), - url(r'spectacles/unpaid/(?P\d+)$', + url(r'^spectacles/unpaid/(?P\d+)$', "bda.views.unpaid", name="bda-unpaid"), - url(r'mails-rappel/(?P\d+)$', "bda.views.send_rappel"), + url(r'^mails-rappel/(?P\d+)$', "bda.views.send_rappel"), )