Ticket #12601: slugfield_docs.diff
File slugfield_docs.diff, 895 bytes (added by , 15 years ago) |
---|
-
docs/ref/forms/fields.txt
607 607 * Validates that the given value is a valid IPv4 address, using a regular 608 608 expression. 609 609 * Error message keys: ``required``, ``invalid`` 610 611 ``SlugField`` 612 ~~~~~~~~~~~~~ 610 613 614 .. class:: SlugField(**kwargs) 615 616 * Default widget: ``TextInput`` 617 * Empty value: ``''`` (an empty string) 618 * Normalizes to: A Unicode object. 619 * Validates that the given value consists solely of letters, numbers, 620 underscores or hyphens. Also validates ``max_length`` or ``min_length`` 621 if they are provided. 622 * Error message keys: ``required``, ``max_length``, ``min_length``, 623 ``invalid`` 624 611 625 ``MultipleChoiceField`` 612 626 ~~~~~~~~~~~~~~~~~~~~~~~ 613 627