mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Switching to autoescape is not a change in syntax.
This commit is contained in:
		| @@ -565,7 +565,8 @@ def cycle(parser, token, escape=False): | |||||||
|     """ |     """ | ||||||
|     if not escape: |     if not escape: | ||||||
|         warnings.warn( |         warnings.warn( | ||||||
|             "'The syntax for the `cycle` template tag is changing. Load it " |             "'The `cycle` template tag is changing to escape its arguments; " | ||||||
|  |             "the non-autoescaping version is deprecated. Load it " | ||||||
|             "from the `future` tag library to start using the new behavior.", |             "from the `future` tag library to start using the new behavior.", | ||||||
|             PendingDeprecationWarning, stacklevel=2) |             PendingDeprecationWarning, stacklevel=2) | ||||||
|  |  | ||||||
| @@ -707,7 +708,8 @@ def firstof(parser, token, escape=False): | |||||||
|     """ |     """ | ||||||
|     if not escape: |     if not escape: | ||||||
|         warnings.warn( |         warnings.warn( | ||||||
|             "'The syntax for the `firstof` template tag is changing. Load it " |             "'The `firstof` template tag is changing to escape its arguments; " | ||||||
|  |             "the non-autoescaping version is deprecated. Load it " | ||||||
|             "from the `future` tag library to start using the new behavior.", |             "from the `future` tag library to start using the new behavior.", | ||||||
|             PendingDeprecationWarning, stacklevel=2) |             PendingDeprecationWarning, stacklevel=2) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user