Removing callable for Django 2.0 compat
1 files changed, 6 insertions(+), 6 deletions(-)

M webutils/baseacct/views.py
M webutils/baseacct/views.py +6 -6
@@ 6,21 6,21 @@ from django.shortcuts import render, red
 
 
 def reset(request, reset_form, profile_model, template, key=None):
-    if request.user.is_authenticated():
+    if request.user.is_authenticated:
         return redirect(settings.LOGIN_REDIRECT_URL)
 
     msg = None
     if request.method == 'POST':
         form = reset_form(request.POST)
         if form.is_valid():
-            # Form class validates email address is registered 
+            # Form class validates email address is registered
             # to an account.
             try:
                 profile = profile_model.objects.get(
                     user__email__exact=form.cleaned_data['email']
                 )
             except profile_model.MultipleObjectsReturned:
-                # Shouldn't be reached. Added as sanity check. Grab the 
+                # Shouldn't be reached. Added as sanity check. Grab the
                 # first profile that matches this email address.
                 profile = profile_model.objects.filter(
                     user__email__exact=form.cleaned_data['email']

          
@@ 34,9 34,9 @@ def reset(request, reset_form, profile_m
                 'key': profile.activation_key,
             }
             profile_model.objects.send_user_email(
-                profile.user, 
-                subject, 
-                ctext, 
+                profile.user,
+                subject,
+                ctext,
                 'baseacct/reset_email.txt',
             )