diff --git a/django/newforms/forms.py b/django/newforms/forms.py index 8b58b94ccd7bd..3712c676c4e2f 100644 --- a/django/newforms/forms.py +++ b/django/newforms/forms.py @@ -182,7 +182,7 @@ def as_widget(self, widget, attrs=None): auto_id = self.auto_id if auto_id and not attrs.has_key('id') and not widget.attrs.has_key('id'): attrs['id'] = auto_id - return widget.render(self._name, self._form.data.get(self._name, None), attrs=attrs) + return widget.render(self._name, self.data, attrs=attrs) def as_text(self, attrs=None): """ @@ -194,6 +194,11 @@ def as_textarea(self, attrs=None): "Returns a string of HTML for representing this as a