From c8a6f0eaeb7e01b9172e25d366eb3f09a8258972 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Thu, 28 Jan 2021 12:07:47 +0100 Subject: [PATCH] =?UTF-8?q?On=20demande=20le=20login=20uniquement=20en=20P?= =?UTF-8?q?OST,=20ce=20qui=20permet=20d'acc=C3=A9der=20=C3=A0=20la=20page?= =?UTF-8?q?=20d'accueil=20sans=20=C3=AAtre=20connect=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fiches/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fiches/views.py b/fiches/views.py index db8ea5b..2060b4f 100644 --- a/fiches/views.py +++ b/fiches/views.py @@ -116,7 +116,7 @@ class EditView(UpdateView): return reverse("fiche", args=(self.get_object().user,)) -@method_decorator(login_required, name="dispatch") +@method_decorator(login_required, name="post") class HomeView(FormView): model = Profile template_name = "fiches/home.html"