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)