Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #11270 -- Corrected naming conflict in templatetag test. Thanks…

… to steveire for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11067 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 8950a40ceccbdccd5ba5c3f788e5a3a3b7d0638f 1 parent b836ed4
Russell Keith-Magee authored June 18, 2009

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  tests/regressiontests/templates/tests.py
4  tests/regressiontests/templates/tests.py
@@ -69,7 +69,7 @@ class SomeException(Exception):
69 69
 
70 70
 class SomeOtherException(Exception):
71 71
     pass
72  
-    
  72
+
73 73
 class ContextStackException(Exception):
74 74
     pass
75 75
 
@@ -629,7 +629,7 @@ def get_template_tests(self):
629 629
 
630 630
             # Logically the same as above, just written with explicit
631 631
             # ifchanged for the day.
632  
-            'ifchanged-param04': ('{% for d in days %}{% ifchanged d.day %}{{ d.day }}{% endifchanged %}{% for h in d.hours %}{% ifchanged d.day h %}{{ h }}{% endifchanged %}{% endfor %}{% endfor %}', {'days':[{'day':1, 'hours':[1,2,3]},{'day':2, 'hours':[3]},] }, '112323'),
  632
+            'ifchanged-param05': ('{% for d in days %}{% ifchanged d.day %}{{ d.day }}{% endifchanged %}{% for h in d.hours %}{% ifchanged d.day h %}{{ h }}{% endifchanged %}{% endfor %}{% endfor %}', {'days':[{'day':1, 'hours':[1,2,3]},{'day':2, 'hours':[3]},] }, '112323'),
633 633
 
634 634
             # Test the else clause of ifchanged.
635 635
             'ifchanged-else01': ('{% for id in ids %}{{ id }}{% ifchanged id %}-first{% else %}-other{% endifchanged %},{% endfor %}', {'ids': [1,1,2,2,2,3]}, '1-first,1-other,2-first,2-other,2-other,3-first,'),

0 notes on commit 8950a40

Please sign in to comment.
Something went wrong with that request. Please try again.