did u try using the required parameter ?
In my case the default behavior was required and i
changed it to not-required by adding  "required=False"
like
name = forms.CharField(widget=forms.TextInput(attrs=class_txtbox),
required=False)

On May 2, 10:18 am, zmalloc <[EMAIL PROTECTED]> wrote:
> ModelForm currently doesnotprovide anything like  class="required"
> on rendered forms wherefieldsarerequired.  This has led me to
> create thefieldsmanually in the form and add the style attribute to
> thewidget.  Doing this, I then lose help_text definitions created in
> the model.
>
> So I can either provide another help_text argument to the form field,
> which violates DRY, or I can provide the
> Model._meta.get_field('name').help_text as the value of help_text
> which seems extraneous.
>
> Is there another way to deal with this?  I was told there was a ticket
> to address this on some level, but I couldnotfind it.
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to