Skip to content

Commit

Permalink
Revert "modified accounts/views.py"
Browse files Browse the repository at this point in the history
This reverts commit 06688a3.
  • Loading branch information
ashfaq1934 committed Jul 1, 2023
1 parent 06688a3 commit 0ac36aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions project/accounts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def form_valid(self, form):
self._send_email(user)
self._login(user)

return super().form_valid(form)
return super(RegisterView, self).form_valid(form)


class ProfileActivationView(View):
Expand All @@ -92,6 +92,7 @@ class ProfileActivationView(View):
"""

def get(self, request, uidb64, token):

try:
uid = force_str(urlsafe_base64_decode(uidb64))
user = get_user_model().objects.get(pk=uid)
Expand Down Expand Up @@ -169,7 +170,7 @@ def get_initial(self):
"profile_image": profile.profile_image or None,
}
)
return super().get_initial()
return super(SettingsView, self).get_initial()


class UserProfileView(LoginRequiredMixin, View):
Expand Down

0 comments on commit 0ac36aa

Please sign in to comment.