I would like to add help text in this form.
class ItemForm(forms.ModelForm): alternative_id = forms.CharField(max_length = 60, required = False, help_text = 'Valid wildcard search is in the format *XX, *XX*, XX*')
However, it does not appear on the page. Is it because I might need a template tag somewhere?
EDIT . I wrote this in my template.
<div id="location_header">Search for Items</div> <div id="form_container"> <form action="." method="post"> <fieldset class="model"> {{ form.as_p }} {{ alternative_id.help_text }} </fieldset> <div id="form_footer"> <input type="submit" value="Search" > </div> </form> </div>
Help text is still not displayed. Is there a way to write help text allowing django to generate a form?
source share