Przeglądaj źródła

Fixed #22618 -- Improved import_string example.

Thanks ewjoachim for the sugggestion.
Tim Graham 11 lat temu
rodzic
commit
c501662f3c
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      docs/ref/utils.txt

+ 2 - 2
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='')