diff --git a/osinaweb/osinacore/__pycache__/views.cpython-310.pyc b/osinaweb/osinacore/__pycache__/views.cpython-310.pyc index 8d63060f..ae39d662 100644 Binary files a/osinaweb/osinacore/__pycache__/views.cpython-310.pyc and b/osinaweb/osinacore/__pycache__/views.cpython-310.pyc differ diff --git a/osinaweb/osinacore/views.py b/osinaweb/osinacore/views.py index a42c4027..094e0667 100644 --- a/osinaweb/osinacore/views.py +++ b/osinaweb/osinacore/views.py @@ -132,7 +132,9 @@ def activate(request, uidb64, token): user = None if user is not None and default_token_generator.check_token(user, token): - user.customerprofile.status = 'Active' + profile = CustomerProfile.objects.get(user=user) + profile.status = 'Active' + profile.save() user.save() auth_login(request, user) return redirect('home')