diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-03-17 22:31:03 +0000 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-03-17 22:31:03 +0000 |
| commit | c7cc4cfb9ebef17930db4a92cd0632a536a4ff7a (patch) | |
| tree | e55dd0e148bb8247e7a1f5dec71572483050e6b5 /docs/releases | |
| parent | f13328f7762dbdc920395bdf5c50fe0b6e40f1db (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 'docs/releases')
| -rw-r--r-- | docs/releases/1.4.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/releases/1.4.txt b/docs/releases/1.4.txt index d82ca03d28..211d1362c8 100644 --- a/docs/releases/1.4.txt +++ b/docs/releases/1.4.txt @@ -1107,6 +1107,15 @@ passed to the markdown filter, both the ``safe_mode=True`` and Python-Markdown library less than 2.1, a warning is issued that the output is insecure. +FormMixin get_initial returns an instance-specific dictionary +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +In Django 1.3, the ``get_initial`` method of the +:class:`django.views.generic.edit.FormMixin` class was returning the +class ``initial`` dictionary. This has been fixed to return a copy of this +dictionary, so form instances can modify their initial data without messing +with the class variable. + Features deprecated in 1.4 ========================== |
