Re: TINYMCE causing form error "This field is required."

2009-01-29 Thread Eric I.E.
Thanks for your help Daniel, That was exactly my problem. I changed the ModelForm in admin.py to this and it resolved the issue. class EntryAdminForm(forms.ModelForm): body_html = forms.CharField(widget=TinyMCE(attrs={'cols': 80, 'rows': 30})) excerpt_html = forms.CharField(widget

Re: TINYMCE causing form error "This field is required."

2009-01-26 Thread Daniel Roseman
On Jan 26, 5:22 am, "Eric I.E." 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.TextFiel

Re: TINYMCE causing form error "This field is required."

2009-01-25 Thread Eric I.E.
I started using django-tinymce's HTMLField the previous line in models.py is placed with this: column1 = tinymce_models.HTMLField(blank=True, null=True) which seems to take care of the errors. I would like to know why that is, and I also generally like controlling forms in admin.py not in models.

TINYMCE causing form error "This field is required."

2009-01-25 Thread Eric I.E.
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)