-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Let's find something in the database:
qs = Foo.find(db, query)here qs is a monk.modeling.MongoResultSet instance; now sort the documents:
qs2 = qs.sort('foo')...whoops, qs2 is a pymongo.cursor.Cursor, i.e. monk.modeling.Document wrapping is lost.
Currently MongoResultSet simply redirects __getattr__ to Cursor; it should wrap the results in some cases as it does in __iter__.
Note: This issue has been automatically migrated from Bitbucket
Created by @neithere on 2012-05-17 01:27:32+00:00, last updated: 2012-05-17 01:28:09+00:00
Reactions are currently unavailable