From dae392d4c39b48c64a6df438cdca012bb8886672 Mon Sep 17 00:00:00 2001 From: ludo Date: Wed, 8 Jun 2016 18:37:38 +0200 Subject: [PATCH 1/2] Fixe la liste des spectacles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le template essayait d'itérer sur un queryset au lieu d'une liste --- bda/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bda/views.py b/bda/views.py index 39a6e760..f4495f55 100644 --- a/bda/views.py +++ b/bda/views.py @@ -314,7 +314,7 @@ class SpectacleListView(ListView): template_name = 'spectacle_list.html' def get_queryset(self): self.tirage = get_object_or_404(Tirage, id=self.kwargs['tirage_id']) - categories = self.tirage.spectacle_set + categories = self.tirage.spectacle_set.all() return categories def get_context_data(self, **kwargs): context = super(SpectacleListView, self).get_context_data(**kwargs) From 12118a61612aead74acb3aaef897d3b353ca3f5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Thu, 9 Jun 2016 01:17:54 +0200 Subject: [PATCH 2/2] Fixe la vue de changement de mot de passe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit La vue par défaut cherchait l'url `password_change_done`. Ce fix créer un alias `password_change_done` qui pointe vers la bonne vue. --- cof/urls.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cof/urls.py b/cof/urls.py index e841ee02..3a7680d6 100644 --- a/cof/urls.py +++ b/cof/urls.py @@ -19,7 +19,9 @@ urlpatterns = patterns('', url(r'^outsider/login$', 'gestioncof.views.login_ext'), url(r'^outsider/logout$', 'django.contrib.auth.views.logout', {'next_page': '/gestion/'}), url(r'^outsider/password-change$', 'django.contrib.auth.views.password_change'), - url(r'^outsider/password-change-done$', 'django.contrib.auth.views.password_change_done'), + url(r'^outsider/password-change-done$', + 'django.contrib.auth.views.password_change_done', + name='password_change_done'), url(r'^login$', 'gestioncof.views.login'), url(r'^logout$', 'gestioncof.views.logout'), url(r'^profile$', 'gestioncof.views.profile'),