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" diff --git a/locale/en/LC_MESSAGES/django.mo b/locale/en/LC_MESSAGES/django.mo index 52dbf54..62eb4ce 100644 Binary files a/locale/en/LC_MESSAGES/django.mo and b/locale/en/LC_MESSAGES/django.mo differ diff --git a/locale/en/LC_MESSAGES/django.po b/locale/en/LC_MESSAGES/django.po index dcb6207..c57ebdb 100644 --- a/locale/en/LC_MESSAGES/django.po +++ b/locale/en/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-01-28 00:03+0000\n" -"PO-Revision-Date: 2021-02-04 21:28+0100\n" +"PO-Revision-Date: 2021-02-04 23:49+0100\n" "Last-Translator: Tom Hubrecht \n" "Language-Team: \n" "Language: en\n"