On demande le login uniquement en POST, ce qui permet d'accéder à la page d'accueil sans être connecté
This commit is contained in:
parent
de57c09ed0
commit
c8a6f0eaeb
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue