Ticket #7988: create_update.diff

File create_update.diff, 706 bytes (added by richardh, 7 years ago)

warning to warnings patch

  • create_update.py

     
    1515    needed for newforms-based forms.
    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):
    2525    """
Back to Top