Forms

To customize the form representation use the template language.

  • {{ field }} instance of BoundField which has the following attributes:
  • {{ field.label }} Labelled name.
  • {{ field.label_tag }} Field's label wrapped in the appropriate 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 validation errors corresponding to this field.

Edit tutorial

Comment on This Data Unit