summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2012-03-17 22:31:03 +0000
committerClaude Paroz <claude@2xlibre.net>2012-03-17 22:31:03 +0000
commitc7cc4cfb9ebef17930db4a92cd0632a536a4ff7a (patch)
treee55dd0e148bb8247e7a1f5dec71572483050e6b5 /django
parentf13328f7762dbdc920395bdf5c50fe0b6e40f1db (diff)
Fixed #16138 -- Made FormMixin get_initial return a copy of the 'initial' class variable. Thanks hanson2010, wilfred@potatolondon.com and agriffis for their work on the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17765 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rw-r--r--django/views/generic/edit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/views/generic/edit.py b/django/views/generic/edit.py
index 3cade522d4..d107e9a732 100644
--- a/django/views/generic/edit.py
+++ b/django/views/generic/edit.py
@@ -19,7 +19,7 @@ class FormMixin(object):
"""
Returns the initial data to use for forms on this view.
"""
- return self.initial
+ return self.initial.copy()
def get_form_class(self):
"""