My problem is that the RichTextField is the only field not displayed in the form.
I have a Model:
class RealestateObject(models.Model):
title = models.CharField(
max_length=256,
verbose_name=_('Object Title'),
)
summary = RichTextField(
verbose_name=_('Summary'),
blank=True, null=True,
)
description = models.TextField(
verbose_name=_('Description'),
blank=True, null=True,
)
And a form:
class RealestateObjectForm(forms.ModelForm):
class Meta:
model = TestRealestateObject
fields = ('title',
'summary',
'description'
)
and my template:
<form method="POST" action="">
{% csrf_token %}
{{ form }}
<button type="submit">Insert</button>
</form>
the title and description field are displayed in the form, the summary not. Is there a solution for this and/or a work around? I can't use the Wagtail Form Builder. It also would be great if I could use the richtext editor.
thanks.