diff options
| author | Claude Paroz <claude@2xlibre.net> | 2013-01-26 18:23:10 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2013-03-01 09:35:18 +0100 |
| commit | 3318595c0bfeda9f6bae8aa11dda68647ae55fde (patch) | |
| tree | e64dbdd8c78310df26937a87a2111b3dcc11074e /django | |
| parent | 892bc91cb0036d6868081363628f65094c4790d6 (diff) | |
Fixed #18898 -- Added tests with a fix for ModelMultipleChoiceField
Diffstat (limited to 'django')
| -rw-r--r-- | django/forms/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/models.py b/django/forms/models.py index 1cea110df4..87fd546f2a 100644 --- a/django/forms/models.py +++ b/django/forms/models.py @@ -1072,6 +1072,6 @@ class ModelMultipleChoiceField(ModelChoiceField): data = [] if len(initial) != len(data): return True - initial_set = set([force_text(value) for value in initial]) + initial_set = set([force_text(value) for value in self.prepare_value(initial)]) data_set = set([force_text(value) for value in data]) return data_set != initial_set |
