mirror of
https://github.com/django/django.git
synced 2025-01-03 06:55:47 +00:00
Adjusted recursion depth test to use str() rather than the form or field’s render() method.
This commit is contained in:
parent
f9f9215d3e
commit
051d5944f8
@ -10,7 +10,7 @@ class CountRenderNode(Node):
|
|||||||
self.count += 1
|
self.count += 1
|
||||||
for v in context.flatten().values():
|
for v in context.flatten().values():
|
||||||
try:
|
try:
|
||||||
v.render()
|
str(v)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
return str(self.count)
|
return str(self.count)
|
||||||
|
Loading…
Reference in New Issue
Block a user