mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +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
|
||||
for v in context.flatten().values():
|
||||
try:
|
||||
v.render()
|
||||
str(v)
|
||||
except AttributeError:
|
||||
pass
|
||||
return str(self.count)
|
||||
|
Loading…
Reference in New Issue
Block a user