Bram - Smartelectronix schrieb:

> in clean( ) we would like to set a field value. In particular: if there
> are errors in a signup form, we'd like to delete the passwords to user
> gave before as to not send unencrypted passwords back...

clean() is a field method, but I guess, you want to change the
behaviour of your widget, so the entered value does not show up when
the form submission was not successful and the form is being rendered
again.
The PasswordInput widget already has such functionality: Maybe you can
take a look at django/newforms/widgets.py and search for the class
definition of "PasswordInput", and change your own widget if
necessary?

Hope that helps,
Martin


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to