class SlugField(**kwargs) [source]
- Default widget:
TextInput - Empty value:
''(an empty string) - Normalizes to: A Unicode object.
- Validates that the given value contains only letters, numbers, underscores, and hyphens.
- Error messages:
required,invalid
This field is intended for use in representing a model SlugField in forms.
Takes an optional parameter:
-
allow_unicode -
New in Django 1.9.
A boolean instructing the field to accept Unicode letters in addition to ASCII letters. Defaults to
False.
Please login to continue.