Fix my account success url

This commit is contained in:
Yohann D'ANELLO 2020-05-15 02:47:22 +02:00
parent 9ba4d88e3d
commit 8c0b2600f9
1 changed files with 3 additions and 0 deletions

View File

@ -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):
"""