Django

Code

Changeset 8105

Show
Ignore:
Timestamp:
07/27/08 12:24:35 (4 months ago)
Author:
gwilson
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/views/generic/create_update.py

    r7971 r8105  
    1616    """ 
    1717    if follow is not None: 
    18         import warning 
     18        import warnings 
    1919        msg = ("Generic views have been changed to use newforms, and the" 
    2020               "'follow' argument is no longer used.  Please update your code" 
    2121               "to not use the 'follow' argument.") 
    22         warning.warn(msg, DeprecationWarning, stacklevel=3) 
     22        warnings.warn(msg, DeprecationWarning, stacklevel=3) 
    2323 
    2424def apply_extra_context(extra_context, context):