Author: adrian
Date: 2007-02-28 00:04:46 -0600 (Wed, 28 Feb 2007)
New Revision: 4643
Modified:
django/branches/newforms-admin/django/contrib/admin/sites.py
Log:
newforms-admin: Added password_change() and password_change_done() hooks to
AdminSite
Modified: django/branches/newforms-admin/django/contrib/admin/sites.py
===================================================================
--- django/branches/newforms-admin/django/contrib/admin/sites.py
2007-02-28 05:59:05 UTC (rev 4642)
+++ django/branches/newforms-admin/django/contrib/admin/sites.py
2007-02-28 06:04:46 UTC (rev 4643)
@@ -105,8 +105,20 @@
url = url.rstrip('/') # Trim trailing slash, if it exists.
if url == '':
return self.index(request)
+ elif url == 'password_change':
+ return self.password_change(request)
+ elif url == 'password_change/done':
+ return self.password_change_done(request)
raise NotImplementedError('Only the admin index page is implemented.')
+ def password_change(self, request):
+ from django.contrib.auth.views import password_change
+ return password_change(request)
+
+ def password_change_done(self, request):
+ from django.contrib.auth.views import password_change_done
+ return password_change_done(request)
+
def login(self, request):
"""
Displays the login form for the given HttpRequest.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---