BinaryField returns str not unicode

This commit is contained in:
Harry Marr
2010-04-17 21:24:06 +01:00
parent 3c7e8be2e7
commit edfda6ad5b
2 changed files with 4 additions and 3 deletions

View File

@@ -918,7 +918,7 @@ class QuerySetManager(object):
opts = {'capped': True, 'size': max_size}
if max_documents:
opts['max'] = max_documents
self._collection = db.create_collection(collection, opts)
self._collection = db.create_collection(collection, **opts)
else:
self._collection = db[collection]