Ticket #19138: patch-forms.py-c04f07d5be28.txt

File patch-forms.py-c04f07d5be28.txt, 536 bytes (added by Charlie Tang <Charlie.Tang@…>, 2 years ago)
Line 
1diff -r c04f07d5be28 django/forms/forms.py
2--- a/django/forms/forms.py     Tue Oct 02 15:49:55 2012 -0400
3+++ b/django/forms/forms.py     Wed Oct 17 10:32:33 2012 -0400
4@@ -477,7 +477,7 @@
5         """
6         Returns the data for this BoundField, or None if it wasn't given.
7         """
8-        return self.field.widget.value_from_datadict(self.form.data, self.form.files, self.html_name)
9+        return self.field.widget.value_from_datadict(self.form.data, self.form.files, self.name)
10     data = property(_data)
11 
12     def value(self):
13
Back to Top