1. Peter Sanchez
  2. webutils

Commits

Peter Sanchez  committed 86d1885

More baseaccount fixes

  • Participants
  • Parent commits d67830f
  • Branches trunk

Comments (0)

Files changed (3)

File webutils/baseacct/__init__.py

View file
 from django.conf import settings
+from django.core.exceptions import ImproperlyConfigured
 from django.contrib.auth.forms import AuthenticationForm, PasswordChangeForm
-from django.core.exceptions import ImproperlyConfigured
 from forms import ResetForm
 from webutils.djtools.easyconfig import EasyConfig
 
             )
         return self.config.get_object('get_profile_model', None)
     
-    def get_post_change_redirect(self):
-        return self.config.get_object('get_post_change_redirect', None)
+    def get_password_change_redirect(self):
+        return self.config.get_object('get_password_change_redirect', None)
     
     def get_password_change_form(self):
         return self.config.get_object('get_password_change_form', PasswordChangeForm)

File webutils/baseacct/urls.py

View file
     url(r'^password_change/$',
         auth_views.password_change, {
             'template_name': 'baseacct/password_change.html',
-            'post_change_redirect': config.get_post_change_redirect(),
+            'post_change_redirect': config.get_password_change_redirect(),
             'password_change_form': config.get_password_change_form(),
         }, name='baseacct-password-change'),
     url(r'^password_change/done/$',

File webutils/baseacct/views.py

View file
 from django.conf import settings
 from django.contrib.auth.models import User
+from django.template import loader, RequestContext
 from django.shortcuts import render_to_response, redirect
-from django.contrib.auth.decorators import login_required
 from webutils.baseacct import Config