Change - Forms

Created on Sept. 25, 2012, 9:35 p.m. by Hevok & updated on Oct. 23, 2012, 7:46 p.m. by Hevok

To customize the form representation use the template language. {{ field }} instance of BoundField which has the following attributes: {{ field.label }} Labeled name. {{ field.label_tag }} Field's label wrappred in the appropiate HTML tag {{ field.html_name }} Name of field that will be used in input's element's name field. {{ field.help_text }} Any associated help text associated. {{ field.errors }} Outputs a containing any valication errors corresponding to this field.

Tags: template
Categories: Tutorial
Parent: Web Framework

Comment: Belongs to django.

Comment on This Data Unit