On 2/11/07, lee <[EMAIL PROTECTED]> wrote:
> hi all,
>
>     I am a newbie to django, I want to use 'newforms' module to generate a
> regestration page, because it can validate the data automatically,  but
> there is a problem:
>
>     As usual, web site always let people input password twice when
> regestering , so how could I check whether the two password inputs  are the
> same?
>
>     Is there any lazy way , or if django framework give some functions  to
> make it easily ?

you can just add a clean_password method to your Form class that would
compare the two fields values and raise a ValidationError if they
don't match

>
> thanks for any help :)
>
>  >
>


-- 
Honza Kr�l
E-Mail: [EMAIL PROTECTED]
ICQ#:   107471613
Phone:  +420 606 678585

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to