mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Alphabetized imports in various docs.
Follow-up ofd97cce3409and7d3fe36c62.
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user