Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #7988 -- Corrected import of the warnings module, thanks richardh.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 12eba9e commit 020f965087e82a7e4e9aede9542365206f3ca162 @gdub gdub committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/views/generic/
4 django/views/generic/
@@ -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):

0 comments on commit 020f965

Please sign in to comment.
Something went wrong with that request. Please try again.