Fix _transform_update to accept unicode fields

This commit is contained in:
Jaime Irurzun 2012-07-10 10:40:14 +01:00
parent 7a1b110f62
commit 1fff7e9aca

View File

@ -1373,7 +1373,7 @@ class QuerySet(object):
cleaned_fields = [] cleaned_fields = []
for field in fields: for field in fields:
append_field = True append_field = True
if isinstance(field, str): if isinstance(field, basestring):
# Convert the S operator to $ # Convert the S operator to $
if field == 'S': if field == 'S':
field = '$' field = '$'