Skip to content

Commit

Permalink
Fix _transform_update to accept unicode fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaime Irurzun committed Jul 10, 2012
1 parent 7a1b110 commit 1fff7e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mongoengine/queryset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ def _transform_update(cls, _doc_cls=None, **update):
cleaned_fields = []
for field in fields:
append_field = True
if isinstance(field, str):
if isinstance(field, basestring):
# Convert the S operator to $
if field == 'S':
field = '$'
Expand Down

0 comments on commit 1fff7e9

Please sign in to comment.