diff --git a/AuthApp/js_views.py b/AuthApp/js_views.py index abc18ac..d456457 100644 --- a/AuthApp/js_views.py +++ b/AuthApp/js_views.py @@ -40,7 +40,7 @@ def mailing_subscribe_ajax(request): email = request.POST['email'] user = None - if request.user and request.user.is_authenticated(): + if request.user and request.user.is_authenticated: user = request.user user.user_profile.mailing_on = True user.user_profile.save(update_fields=['mailing_on'])