mongoengine
mongoengine copied to clipboard
Fix: Handle collection.objects when it's a partial function
collection.objects can be a partial function. When it is, trying to call in_bulk on it was causing error.
Note: I added explicit type check before calling it, but I can change it to be always called (because query set is callable).