summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlasdair Nicol <alasdair@thenicols.net>2015-06-04 17:11:50 +0100
committerTim Graham <timograham@gmail.com>2015-06-04 13:52:25 -0400
commit2aa65460d54b8f8cbca2ae7b7d97bfe219e88929 (patch)
tree918719f016a4d4d75095107b22805aa0fd246145
parentcccb7b49dc2bfdbebae170ebfeee1abf2a731552 (diff)
[1.8.x] Removed comment from Form.changed_data; refs #24191
Backport of 5987b3c46d5a6948737627d294d95ed54d49eae6 from master
-rw-r--r--django/forms/forms.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/django/forms/forms.py b/django/forms/forms.py
index bad1843bb0..80ba830684 100644
--- a/django/forms/forms.py
+++ b/django/forms/forms.py
@@ -447,12 +447,6 @@ class BaseForm(object):
def changed_data(self):
if self._changed_data is None:
self._changed_data = []
- # XXX: For now we're asking the individual fields whether or not the
- # data has changed. It would probably be more efficient to hash the
- # initial data, store it in a hidden field, and compare a hash of the
- # submitted data, but we'd need a way to easily get the string value
- # for a given field. Right now, that logic is embedded in the render
- # method of each widget.
for name, field in self.fields.items():
prefixed_name = self.add_prefix(name)
data_value = field.widget.value_from_datadict(self.data, self.files, prefixed_name)