mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -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): | ||||
|     """ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user