Re: ModelForm not creating field with required options

2015-04-25 Thread Stephen J. Butler
You need to set Form.required_css_class https://docs.djangoproject.com/en/1.8/ref/forms/api/#styling-required-or-erroneous-form-rows On Fri, Apr 24, 2015 at 2:30 PM, victor menezes wrote: > Hi all, > > I'm using Django 1.8 and having trouble to because my form does not generate > fields with req

ModelForm not creating field with required options

2015-04-24 Thread victor menezes
Hi all, I'm using Django 1.8 and having trouble to because my form does not generate fields with required option even though they have the property "blank=False" in the model. In the example bellow, shouldn't the field "description" have the "required" attribute in the html generated using "for