-
Notifications
You must be signed in to change notification settings - Fork 257
json encoder #523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
json encoder #523
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@idoshr thank you for interest to this project.
I reviewed changes, being out of mongo right now. Please fix mentioned errors and I will recheck again.
@@ -78,7 +78,7 @@ def default(obj): | |||
(BaseDocument, QuerySet, CommandCursor, DBRef, ObjectId), | |||
): | |||
return _convert_mongo_objects(obj) | |||
return super().default(obj) | |||
return superclass.default(obj) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What? Where it from?
Co-authored-by: Andrey Shpak <insspb@users.noreply.github.com>
@insspb |
Hi that's cool ! Thanks |
Fix issue while try to inherit from MongoEngineJSONEncoder
and for bonus add doc of how add encoder hope it will be helpful