Skip to content

Commit

Permalink
modified account/views
Browse files Browse the repository at this point in the history
  • Loading branch information
ashfaq1934 committed Jul 2, 2023
1 parent 0ac36aa commit ca4ccfc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 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(RegisterView, self).form_valid(form)
return super().form_valid(form)


class ProfileActivationView(View):
Expand All @@ -92,7 +92,6 @@ 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 @@ -170,7 +169,7 @@ def get_initial(self):
"profile_image": profile.profile_image or None,
}
)
return super(SettingsView, self).get_initial()
return super().get_initial()


class UserProfileView(LoginRequiredMixin, View):
Expand Down

0 comments on commit ca4ccfc

Please sign in to comment.