summaryrefslogtreecommitdiff
path: root/django/db/models
diff options
context:
space:
mode:
authorYehonatan Daniv <maggotfish@gmail.com>2014-05-01 12:55:52 +0300
committerTim Graham <timograham@gmail.com>2014-05-01 09:28:11 -0400
commite2e4cdba1178ebcfd95c19eb063abd55b4afbcbb (patch)
tree1140208cc39c5153d328ef801dc24a0763f2250e /django/db/models
parent45c2d1f5d95dfbd6fcb306057e4c7338fb37a1bf (diff)
Fixed #22539 -- Copied exclude argument in Model.full_clean() to prevent side effects.
Diffstat (limited to 'django/db/models')
-rw-r--r--django/db/models/base.py2
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)