On Apr 1, 1:51 pm, Nick Arnett wrote:
> On Thu, Apr 1, 2010 at 10:34 AM, Chris Curvey wrote:
>
> > class FoobarForm(ModelForm):
> > foo = forms.FloatField(label = '$')
> > id = forms.HiddenField()
>
> If you're using newforms, there's no such thing as HiddenField.
>
> Perhaps you want this:
>
On Thu, Apr 1, 2010 at 10:34 AM, Chris Curvey wrote:
>
> class FoobarForm(ModelForm):
> foo = forms.FloatField(label = '$')
> id = forms.HiddenField()
If you're using newforms, there's no such thing as HiddenField.
Perhaps you want this:
id = forms.IntegerField(widget = forms.HiddenInput)
2 matches
Mail list logo