For the following model:
class MyModel(models.Model):
name = models.CharField(max_length=110, help_text="Some sample help text.")
def __unicode__(self):
return u'%s' % (self.name)
And the following modelform:
class MyModelForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(MyModelForm, self).__init__(*args, **kwargs)
self.helper = FormHelper()
self.helper.form_id = 'id-myModelForm'
self.helper.form_class = 'form-horizontal'
self.helper.form_action = 'my_model_form_url'
self.helper.form_error_title = 'Form Errors'
self.helper.help_text_inline = True
class Meta:
model = MyModel
Using the following template:
{% extends "base.html" %}
{% block content %}
{% load crispy_forms_tags %}
{% crispy form %}
{% endblock %}
The help_text defined in the model does not get rendered at all. It does get rendered if I change to self.helper.help_text_inline = False
instead of self.helper.help_text_inline = True
, but that's not what I want.
How do I get the help_text to show with self.helper.help_text_inline = True
?
The base.html is all proper with bootstrap files all included.