diff options
| author | Tim Graham <timograham@gmail.com> | 2014-05-13 07:04:49 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-05-13 07:04:49 -0400 |
| commit | c501662f3c3f03876effcf3ede94922c0cec43bd (patch) | |
| tree | 536b702c97e2fc7bd8112658b42e6efd14404c65 /docs | |
| parent | a1be7237ca108eb2d5d669e4306e93afcc79c6cb (diff) | |
Fixed #22618 -- Improved import_string example.
Thanks ewjoachim for the sugggestion.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/utils.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index 952cbac8a2..883c388a78 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -719,11 +719,11 @@ Functions for working with Python modules. example:: from django.utils.module_loading import import_string - ImproperlyConfigured = import_string('django.core.exceptions.ImproperlyConfigured') + ValidationError = import_string('django.core.exceptions.ValidationError') is equivalent to:: - from django.core.exceptions import ImproperlyConfigured + from django.core.exceptions import ValidationError .. function:: import_by_path(dotted_path, error_prefix='') |
