From 8c0b2600f9ef1e7f7cb761c27378320c58c1f540 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Fri, 15 May 2020 02:47:22 +0200 Subject: [PATCH] Fix my account success url --- apps/member/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/member/views.py b/apps/member/views.py index 7c0b32e..1cbc9e7 100644 --- a/apps/member/views.py +++ b/apps/member/views.py @@ -45,6 +45,9 @@ class MyAccountView(LoginRequiredMixin, UpdateView): def get_object(self, queryset=None): return self.request.user + def get_success_url(self): + return reverse_lazy('member:my_account') + class UserDetailView(LoginRequiredMixin, DetailView): """