mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-22 17:47:08 +03:00
Merge pull request #3070 from arnav13081994/make_tests_dryer
This commit is contained in:
commit
03f54fa276
|
@ -25,7 +25,7 @@ class UserUpdateView(LoginRequiredMixin, SuccessMessageMixin, UpdateView):
|
|||
success_message = _("Information successfully updated")
|
||||
|
||||
def get_success_url(self):
|
||||
return reverse("users:detail", kwargs={"username": self.request.user.username})
|
||||
return self.request.user.get_absolute_url() # type: ignore [union-attr]
|
||||
|
||||
def get_object(self):
|
||||
return self.request.user
|
||||
|
|
Loading…
Reference in New Issue
Block a user