Ticket #7988: create_update.diff
File create_update.diff, 706 bytes (added by , 16 years ago) |
---|
-
create_update.py
15 15 needed for newforms-based forms. 16 16 """ 17 17 if follow is not None: 18 import warning 18 import warnings 19 19 msg = ("Generic views have been changed to use newforms, and the" 20 20 "'follow' argument is no longer used. Please update your code" 21 21 "to not use the 'follow' argument.") 22 warning .warn(msg, DeprecationWarning, stacklevel=3)22 warnings.warn(msg, DeprecationWarning, stacklevel=3) 23 23 24 24 def apply_extra_context(extra_context, context): 25 25 """