summaryrefslogtreecommitdiff
path: root/django/newforms/widgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/newforms/widgets.py')
-rw-r--r--django/newforms/widgets.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/django/newforms/widgets.py b/django/newforms/widgets.py
index df5c20d97d..16e617301b 100644
--- a/django/newforms/widgets.py
+++ b/django/newforms/widgets.py
@@ -262,6 +262,11 @@ class FileInput(Input):
def value_from_datadict(self, data, files, name):
"File widgets take data from FILES, not POST"
return files.get(name, None)
+
+ def _has_changed(self, initial, data):
+ if data is None:
+ return False
+ return True
class Textarea(Widget):
def __init__(self, attrs=None):