1
0
mirror of https://github.com/django/django.git synced 2024-12-22 09:05:43 +00:00

Refs #33134, Refs #34077 -- Adjusted form rendering recursion test.

Adjusted recursion depth test to use str() rather than the form or
field’s render() method.
This commit is contained in:
David Smith 2023-03-21 15:12:56 +01:00 committed by Carlton Gibson
parent f9f9215d3e
commit 051d5944f8

View File

@ -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)