On Jan 26, 5:22 am, "Eric I.E." <e...@adaptedstudio.com> wrote:
> When I add TinyMCE to my form fields it turns them from optional
> (blank=True, null=True) into required fields.
> I am using django-tinymce in conjunction with django-filebrowser.
>
> My field is defined in models.py like this:
> column1 = models.TextField(help_text="Extended Info", blank=True,
> null=True)
>
> and the TinyMCE editor is applied in the admin.py
> class NewsItemAdminForm(forms.ModelForm):
>         column1 = forms.CharField(widget=TinyMCE(attrs={'cols': 80, 'rows':
> 25}))
>
> Everthing performs as expected until saving when I receive an error
> reading "This field is required."
> Removing TinyMCE removes the error. Any ideas where to start with that
> one?

This is standard behaviour, not connected to TinyMCE. If you override
any field in a modelform, you need to specify all the options -
including whether it's a required field or not.
--
DR.
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to