Code

Ticket #5234: django_prefix_bug_patch.diff

File django_prefix_bug_patch.diff, 560 bytes (added by anonymous, 7 years ago)
Line 
1Index: django/newforms/forms.py
2===================================================================
3--- django/newforms/forms.py    (revision 5891)
4+++ django/newforms/forms.py    (working copy)
5@@ -284,7 +284,7 @@
6         """
7         Returns the data for this BoundField, or None if it wasn't given.
8         """
9-        return self.field.widget.value_from_datadict(self.form.data, self.html_name)
10+        return self.field.widget.value_from_datadict(self.form.data, self.name)
11     data = property(_data)
12 
13     def label_tag(self, contents=None, attrs=None):