summaryrefslogtreecommitdiff
path: root/django/newforms/fields.py
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2008-07-18 21:45:25 +0000
committerAdrian Holovaty <adrian@holovaty.com>2008-07-18 21:45:25 +0000
commit13643a7f5ded088b870b878712f0f4f39f213e52 (patch)
treea9cea8b9d9f8b565ed9b1dc0c9590a22376c4255 /django/newforms/fields.py
parent7997133a3dbf67edcb5a7588c1c049d181a4e61a (diff)
Fixed #7816 -- Fixed error in a few DeprecationWarnings. Thanks, leahculver
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7955 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/newforms/fields.py')
-rw-r--r--django/newforms/fields.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/django/newforms/fields.py b/django/newforms/fields.py
index bfff9fe8b0..77bd8cbe94 100644
--- a/django/newforms/fields.py
+++ b/django/newforms/fields.py
@@ -442,9 +442,7 @@ class FileField(Field):
# We warn once, then support both ways below.
import warnings
warnings.warn(
- message = "Representing uploaded files as dictionaries is"\
- " deprecated. Use django.core.files.SimpleUploadedFile "\
- " instead.",
+ message = "Representing uploaded files as dictionaries is deprecated. Use django.core.files.uploadedfile.SimpleUploadedFile instead.",
category = DeprecationWarning,
stacklevel = 2
)