git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tweaked template tests to use PEP 8 imports and the new setup_test_template_loader...
[philo.git]
/
contrib
/
shipherd
/
templatetags
/
shipherd.py
diff --git
a/contrib/shipherd/templatetags/shipherd.py
b/contrib/shipherd/templatetags/shipherd.py
index
6e36126
..
e3019e1
100644
(file)
--- a/
contrib/shipherd/templatetags/shipherd.py
+++ b/
contrib/shipherd/templatetags/shipherd.py
@@
-60,10
+60,6
@@
class LazyNavigationRecurser(object):
context['item'] = item
context['children'] = self.__class__(self.template_nodes, item.get_children(), context, request)
context['item'] = item
context['children'] = self.__class__(self.template_nodes, item.get_children(), context, request)
- # Django 1.2.X compatibility - a lazy recurser will not be called if accessed as a template variable.
- if django_version < (1,3):
- context['children'] = context['children']()
-
# Then render the nodelist bit by bit.
for node in self.template_nodes:
bits.append(node.render(context))
# Then render the nodelist bit by bit.
for node in self.template_nodes:
bits.append(node.render(context))