File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -643,6 +643,21 @@ compatibility. The preferred way to provide an error message is to use the
643
643
``error_messages`` argument, passing a dictionary with ``'invalid'`` as a key
644
644
and the error message as the value.
645
645
646
+ ``SlugField``
647
+ ~~~~~~~~~~~~~
648
+
649
+ .. class:: SlugField(**kwargs)
650
+
651
+ * Default widget: ``TextInput``
652
+ * Empty value: ``''`` (an empty string)
653
+ * Normalizes to: A Unicode object.
654
+ * Validates that the given value contains only letters, numbers and
655
+ hyphens.
656
+ * Error messages: ``required``, ``invalid``
657
+
658
+ This field is intended for use in representing a model
659
+ :class:`~django.db.models.SlugField` in forms.
660
+
646
661
``TimeField``
647
662
~~~~~~~~~~~~~
648
663
You can’t perform that action at this time.
0 commit comments