summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
Diffstat (limited to 'django')
-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)