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.urls import reverse_lazy
|
||||
|
||||
from core.models.profile import Profile
|
||||
|
||||
|
@ -22,4 +23,6 @@ class OwnProfileView(ProfileUpdateView):
|
|||
template_name = "frontend/my_profile.html"
|
||||
|
||||
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