Re: ModelForm subclass of UserCreationForm fails to exclude fields

2010-07-21 Thread Jacob Fenwick
Actually, I just came across this ticket: http://code.djangoproject.com/ticket/13971 Seems to describe my problem exactly. Sounds like a new bug. Jacob On Wed, Jul 21, 2010 at 6:00 PM, Jacob Fenwick wrote: > class FooCreationForm(UserCreationForm): > email = forms.EmailField(label=_("E-mai

ModelForm subclass of UserCreationForm fails to exclude fields

2010-07-21 Thread Jacob Fenwick
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 th