summaryrefslogtreecommitdiff
path: root/django/oldforms/__init__.py
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-06-17 07:11:37 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-06-17 07:11:37 +0000
commitbccb8897e6ab0fe8d2e5b9bcb725ac28b1c8e566 (patch)
treed3abbbdf27fa5ae3c78a9dc510798cd521e46684 /django/oldforms/__init__.py
parent44dd91ec6d39525e52b78f7fff6de8531b980f5f (diff)
Fixed #4565 -- Changed template rendering to use iterators, rather than
creating large strings, as much as possible. This is all backwards compatible. Thanks, Brian Harring. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5482 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/oldforms/__init__.py')
-rw-r--r--django/oldforms/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/django/oldforms/__init__.py b/django/oldforms/__init__.py
index 5814eef7ff..ea1f425ad3 100644
--- a/django/oldforms/__init__.py
+++ b/django/oldforms/__init__.py
@@ -309,6 +309,10 @@ class FormField(object):
return data
html2python = staticmethod(html2python)
+ def iter_render(self, data):
+ # this even needed?
+ return (self.render(data),)
+
def render(self, data):
raise NotImplementedError