After reading a bit in the source code I remembered that django apps
don't use any magic and after that found the (easy) solution. Just
extend your own class from the auth form PasswordChangeForm, use for
example the "clean" method in your new form and write your own view
for it. The password_change view from auth doesn't do any special
things. Normal form processing. Don't forget to save (this method
comes from the PasswordChangeForm - you don't have to supply it
yourself) and redirect in the success case to a success site.

I recommend to anyone having problems with this reading the source
files.

Alex

On 4 Jul., 21:57, "Alex S." <alexanderschmi...@googlemail.com> wrote:
> Hi folks,
>
> as the title says I want to use my own form class for the password
> change process supplied by django.contrib.auth. Do you know of any way
> to do this without rewriting the code of this view (and specifying
> another argument for the form class to be used)? There are time where
> I want to do some additional checking of the new passwords (for
> example password length). I know this would be possible with
> Javascript but I really would love to avoid using it in some projects.
>
> I'm currently working with the release version of Django (1.0.2).
>
> Thanks in advance
> Alex
--~--~---------~--~----~------------~-------~--~----~
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