i'm busy building a site with public side registrations. instead of
extending the User class i created a UserProfile class. that way the
django stuff is a bit seperate from mine.

i've built a public registration form. what i now want is for the
password field to appear as a password field and to have a password
confirmation field. i was wondering if there was a way to extend the
User.AddManipulator instead of creating a new one and redo all the
checks that currently happen. i did try to use a bit of a hack to make
it work as follow:

> user_manipulator = User.AddManipulator()
> password_match_validator = validators.AlwaysMatchesOtherField('password')
> user_manipulator.fields.append(forms.PasswordField(field_name='password_confirm',
>  maxlength=30, is_required=True, validator_list=[validators.isNotEmpty, 
> password_match_validator]))

this had no effect so put this before the above code:
> User.password_confirm = models.CharField(maxlength=30)

i'm open to getting password confirmation to work in a different way.
has anyone come across a good and working method of doing this?

thanks,
ronny


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to