mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
[2.0.x] Alphabetized imports in various docs.
Follow-up ofd97cce3409
and7d3fe36c62
. Backport of35319bf12c
from master
This commit is contained in:
parent
840c0ed13d
commit
80a53202d4
36 changed files with 71 additions and 71 deletions
|
@ -229,8 +229,8 @@ defined on the :class:`~django.forms.Field` class itself with the
|
|||
Simple validators can be used to validate values inside the field, let's have
|
||||
a look at Django's ``SlugField``::
|
||||
|
||||
from django.forms import CharField
|
||||
from django.core import validators
|
||||
from django.forms import CharField
|
||||
|
||||
class SlugField(CharField):
|
||||
default_validators = [validators.validate_slug]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue