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:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user