How to display a form filed with size and maxlength attributes in Django?

Posted by Luiz C. on Stack Overflow See other posts from Stack Overflow or by Luiz C.
Published on 2010-03-16T20:22:36Z Indexed on 2010/03/16 21:01 UTC
Read the original article Hit count: 352

I have a model form that contains a DecimalField() with max_digits set to 5. How do I display this field this way:

<input type"text" size="5" maxlength="5" />

© Stack Overflow or respective owner

Related posts about django

Related posts about django-templates