Ticket #16851: form_value.diff

File form_value.diff, 654 bytes (added by Yaşar Arabacı, 13 years ago)

Added required documentation items

  • docs/topics/forms/index.txt

    diff --git a/docs/topics/forms/index.txt b/docs/topics/forms/index.txt
    index 5b6f87f..10f840b 100644
    a b templates:  
    289289
    290290    ``{{ field.label }}``
    291291        The label of the field, e.g. ``Email address``.
     292       
     293    ``{{ field.value }}``
     294        The value of the field. However, this will not be correct if value is
     295        ``None``. Therefore, one should better use ``{{ field.value|default_if_none:"" }}``
     296        to specify a default value in template.
    292297
    293298    ``{{ field.label_tag }}``
    294299        The field's label wrapped in the appropriate HTML ``<label>`` tag,
Back to Top