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:05:35 -0400 |
| commit | 0bb90de869303f4e0fc9479391fde7c68b4088a0 (patch) | |
| tree | 815cf6441e191a6e2282e1fcdde5a7387db2921b /docs | |
| parent | aa3fd4b97e5a3f550c2b6a9a6fd23b540ae59078 (diff) | |
[1.7.x] Fixed #22618 -- Improved import_string example.
Thanks ewjoachim for the sugggestion.
Backport of c501662f3c from master
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 1c0a1b6368..6b73944a5d 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -727,11 +727,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='') |
