summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Wilson Jr <gary.wilson@gmail.com>2008-07-27 17:24:35 +0000
committerGary Wilson Jr <gary.wilson@gmail.com>2008-07-27 17:24:35 +0000
commit020f965087e82a7e4e9aede9542365206f3ca162 (patch)
treec2b141e78654a9eed1bd20548da5fc35197574f4
parent12eba9efc1eadcca4dcb55fdf0035a8893322062 (diff)
Fixed #7988 -- Corrected import of the warnings module, thanks richardh.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8105 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/views/generic/create_update.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/views/generic/create_update.py b/django/views/generic/create_update.py
index 4fe639f321..a64915298f 100644
--- a/django/views/generic/create_update.py
+++ b/django/views/generic/create_update.py
@@ -15,11 +15,11 @@ def deprecate_follow(follow):
needed for newforms-based forms.
"""
if follow is not None:
- import warning
+ import warnings
msg = ("Generic views have been changed to use newforms, and the"
"'follow' argument is no longer used. Please update your code"
"to not use the 'follow' argument.")
- warning.warn(msg, DeprecationWarning, stacklevel=3)
+ warnings.warn(msg, DeprecationWarning, stacklevel=3)
def apply_extra_context(extra_context, context):
"""