Fix success URL for profile view
This commit is contained in:
parent
e897500814
commit
9a8d5eb859
1 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
from django.views.generic import UpdateView
|
from django.views.generic import UpdateView
|
||||||
|
from django.urls import reverse_lazy
|
||||||
|
|
||||||
from core.models.profile import Profile
|
from core.models.profile import Profile
|
||||||
|
|
||||||
|
@ -23,3 +24,5 @@ class OwnProfileView(ProfileUpdateView):
|
||||||
|
|
||||||
def get_object(self, queryset=None):
|
def get_object(self, queryset=None):
|
||||||
return self.request.user.profile
|
return self.request.user.profile
|
||||||
|
|
||||||
|
success_url = reverse_lazy("frontend:profile")
|
Loading…
Reference in a new issue