On Thu, Sep 16, 2010 at 7:20 PM, Evgeny <evgeny.fad...@gmail.com> wrote:
> Hello, > > I know that this has been asked before, and the answer seemed to be > - display the wrong data back to the user along with the error > message. > > However, this does not really work with password fields, because there > is nothing really to display. > Let's say the entered password was too short or two passwords did not > match - all you'll see is the equal number of asterisks. > > In this situation I'd like to clear the fields, but display the error > message, > otherwise user has to clear the field himself/herself, which I think > is an unnecessary extra step. > > Use this widget for the field: http://docs.djangoproject.com/en/1.2/ref/forms/widgets/#django.forms.PasswordInput with render_value=False Karen -- http://tracey.org/kmt/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.