1
0
mirror of https://github.com/django/django.git synced 2025-10-27 15:46:10 +00:00

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
This commit is contained in:
Claude Paroz
2012-03-17 22:31:03 +00:00
parent f13328f776
commit c7cc4cfb9e
5 changed files with 27 additions and 4 deletions

View File

@@ -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):
"""