| 2574 | Labels for as_* methods should only end in a colon if they don't end in other |
| 2575 | punctuation already. |
| 2576 | >>> class Questions(Form): |
| 2577 | ... q1 = CharField(label='The first question') |
| 2578 | ... q2 = CharField(label='What is your name?') |
| 2579 | ... q3 = CharField(label='The answer to life is:') |
| 2580 | ... q4 = CharField(label='Answer this question!') |
| 2581 | ... q5 = CharField(label='The last question. Period.') |
| 2582 | >>> print Questions(auto_id=False).as_p() |
| 2583 | <p>The first question: <input type="text" name="q1" /></p> |
| 2584 | <p>What is your name? <input type="text" name="q2" /></p> |
| 2585 | <p>The answer to life is: <input type="text" name="q3" /></p> |
| 2586 | <p>Answer this question! <input type="text" name="q4" /></p> |
| 2587 | <p>The last question. Period. <input type="text" name="q5" /></p> |
| 2588 | >>> print Questions().as_p() |
| 2589 | <p><label for="id_q1">The first question:</label> <input type="text" name="q1" id="id_q1" /></p> |
| 2590 | <p><label for="id_q2">What is your name?</label> <input type="text" name="q2" id="id_q2" /></p> |
| 2591 | <p><label for="id_q3">The answer to life is:</label> <input type="text" name="q3" id="id_q3" /></p> |
| 2592 | <p><label for="id_q4">Answer this question!</label> <input type="text" name="q4" id="id_q4" /></p> |
| 2593 | <p><label for="id_q5">The last question. Period.</label> <input type="text" name="q5" id="id_q5" /></p> |
| 2594 | |