class FooCreationForm(UserCreationForm):
email = forms.EmailField(label=_("E-mail address"))
class Meta(UserCreationForm.Meta):
fields = ('email', 'username')
exclude = ('password1', 'password2')
I would think that this form would show me only the email and password in
that order and exclude the two password.
Instead it puts the fields in the correct order but it does not exclude the
two passwords.
So it's half working.
Why does exclude not work?
Jacob
--
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.