diff options
| author | David Smith <smithdc@gmail.com> | 2023-03-21 15:12:56 +0100 |
|---|---|---|
| committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2023-03-21 15:12:56 +0100 |
| commit | 051d5944f86400b9b3476db60bc73de7e9964810 (patch) | |
| tree | 119be4f0ca350be406fa483172a4e3d77fdda4c0 /tests/forms_tests | |
| parent | f9f9215d3e5500d9a8d0bec0936480ba34d42e88 (diff) | |
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.
Diffstat (limited to 'tests/forms_tests')
| -rw-r--r-- | tests/forms_tests/templatetags/tags.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/forms_tests/templatetags/tags.py b/tests/forms_tests/templatetags/tags.py index 060e5008da..8bde58ea6a 100644 --- a/tests/forms_tests/templatetags/tags.py +++ b/tests/forms_tests/templatetags/tags.py @@ -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) |
