I'm using a simple ldap authentication backend, and the admin password
change functionality may need to be disabled or mangled to do the right
thing (currently going for disabled, can just redirect to different
password change form), as it  changes the django User model password,
which at best will have no effect.

I can sneakily drop the URLs with something like the following

admin_site_urls_except_password = (
    filter(lambda x: getattr(x, 'name', None) not in ('password_change',
'password_change_done'), site.urls[0]),
    site.urls[1],
    site.urls[2],
)

# urlpatterns ...
(r'^admin/', include(admin_site_urls_except_password)),


... but maybe I've missed some obvious setting or approach I should be
using that might be ...less brittle?

(I then need to clone the relevant admin template to hide the
change_password link - Haven't worked out how to inject an alternative
named url, just merrily setting name='admin:password_change' on a url
doesn't work...)











--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to