From 44adae013a2e5c152fa4a9868f2139c129239765 Mon Sep 17 00:00:00 2001 From: Aleksandr Sviridenko Date: Tue, 29 Dec 2015 12:44:07 +0300 Subject: [PATCH] Typo I guess there should be either `db_type in ('list',)` or `db_type == 'list'`. --- djangotoolbox/db/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangotoolbox/db/base.py b/djangotoolbox/db/base.py index ab7b9ab..165510f 100644 --- a/djangotoolbox/db/base.py +++ b/djangotoolbox/db/base.py @@ -476,7 +476,7 @@ def _value_for_db_collection(self, value, field, field_kind, db_type, for subvalue in value) # "list" may be used for SetField. - if db_type in 'list': + if db_type == 'list': return list(value) elif db_type == 'set': # assert field_kind != 'ListField'