diff options
| author | Yehonatan Daniv <maggotfish@gmail.com> | 2014-05-01 12:55:52 +0300 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-05-01 09:28:11 -0400 |
| commit | e2e4cdba1178ebcfd95c19eb063abd55b4afbcbb (patch) | |
| tree | 1140208cc39c5153d328ef801dc24a0763f2250e /django | |
| parent | 45c2d1f5d95dfbd6fcb306057e4c7338fb37a1bf (diff) | |
Fixed #22539 -- Copied exclude argument in Model.full_clean() to prevent side effects.
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/models/base.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/db/models/base.py b/django/db/models/base.py index bba11c9000..386986359d 100644 --- a/django/db/models/base.py +++ b/django/db/models/base.py @@ -988,6 +988,8 @@ class Model(six.with_metaclass(ModelBase)): errors = {} if exclude is None: exclude = [] + else: + exclude = list(exclude) try: self.clean_fields(exclude=exclude) |
