Author: adrian
Date: 2008-07-18 16:45:25 -0500 (Fri, 18 Jul 2008)
New Revision: 7955
Modified:
django/trunk/django/db/models/base.py
django/trunk/django/newforms/fields.py
Log:
Fixed #7816 -- Fixed error in a few DeprecationWarnings. Thanks, leahculver
Modified: django/trunk/django/db/models/base.py
===================================================================
--- django/trunk/django/db/models/base.py 2008-07-18 21:42:08 UTC (rev
7954)
+++ django/trunk/django/db/models/base.py 2008-07-18 21:45:25 UTC (rev
7955)
@@ -487,9 +487,7 @@
if isinstance(raw_field, dict):
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
)
@@ -499,9 +497,7 @@
elif isinstance(raw_field, basestring):
import warnings
warnings.warn(
- message = "Representing uploaded files as strings 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
)
Modified: django/trunk/django/newforms/fields.py
===================================================================
--- django/trunk/django/newforms/fields.py 2008-07-18 21:42:08 UTC (rev
7954)
+++ django/trunk/django/newforms/fields.py 2008-07-18 21:45:25 UTC (rev
7955)
@@ -442,9 +442,7 @@
# 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
)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---