When rendering a django form using the as_p method, you traditionally get something like:
<p>Subject: <input type="text" name="subject" maxlength="100" /></p>
if you had defined the following field:
subject = forms.CharField(max_length=100)
Is there some additional property available to fields, that customizes how they are rendered so that you can add arbitrary html to them. To be more specific, I'd like to include some sample text following each of the <p> tags, so instead of the following being rendered:
<p>Subject: <input type="text" name="subject" maxlength="100" /></p>
<p>Message: <input type="text" name="message" value="Hi there" /></p>
<p>Sender: <input type="text" name="sender" value="invalid e-mail address" /></p>
This is rendered:
<p>Subject: <input type="text" name="subject" maxlength="100" /></p><div> Sample Text 1 </div>
<p>Message: <input type="text" name="message" value="Hi there" /></p><div> Sample Text 2 </div>
<p>Sender: <input type="text" name="sender" value="invalid e-mail address" /></p><div> Sample Text 3</div>