diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-06-17 07:11:37 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-06-17 07:11:37 +0000 |
| commit | bccb8897e6ab0fe8d2e5b9bcb725ac28b1c8e566 (patch) | |
| tree | d3abbbdf27fa5ae3c78a9dc510798cd521e46684 /django/oldforms/__init__.py | |
| parent | 44dd91ec6d39525e52b78f7fff6de8531b980f5f (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__.py | 4 |
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 |
