mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #2743 -- Made the value of a cycle tag accessible through the context.
Patch from Martin Glueck. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3773 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d85ee1c01e
commit
d296e5e565
2 changed files with 8 additions and 3 deletions
|
@ -187,6 +187,7 @@ class Templates(unittest.TestCase):
|
|||
'cycle05': ('{% cycle %}', {}, template.TemplateSyntaxError),
|
||||
'cycle06': ('{% cycle a %}', {}, template.TemplateSyntaxError),
|
||||
'cycle07': ('{% cycle a,b,c as foo %}{% cycle bar %}', {}, template.TemplateSyntaxError),
|
||||
'cycle08': ('{% cycle a,b,c as foo %}{% cycle foo %}{{ foo }}{{ foo }}{% cycle foo %}{{ foo }}', {}, 'abbbcc'),
|
||||
|
||||
### EXCEPTIONS ############################################################
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue