diff options
Diffstat (limited to 'docs/ref/forms')
| -rw-r--r-- | docs/ref/forms/fields.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index bd7cb93389..d7fcef2e75 100644 --- a/docs/ref/forms/fields.txt +++ b/docs/ref/forms/fields.txt @@ -888,6 +888,20 @@ For each field, we describe the default widget used if you don't specify These are the same as ``CharField.max_length`` and ``CharField.min_length``. +``UUIDField`` +------------- + +.. versionadded:: 1.8 + +.. class:: UUIDField(**kwargs) + + * Default widget: :class:`TextInput` + * Empty value: ``''`` (an empty string) + * Normalizes to: A :class:`~python:uuid.UUID` object. + * Error message keys: ``required``, ``invalid`` + + This field will accept any string format accepted as the ``hex`` argument + to the :class:`~python:uuid.UUID` constructor. Slightly complex built-in ``Field`` classes ------------------------------------------- |
