Skip to content

Toolbar issue #14

rozza opened this Issue Mar 12, 2013 · 1 comment

2 participants

MongoEngine member
rozza commented Mar 12, 2013

I apologize if this is the wrong group for this bug report-- this was the only place where I could find discussion of a django-debug-toolbar-mongo bug.

I ran into a problem with the django debug toolbar because operation_tracker's _update (and insert and remove) method specifies the deprecated "safe" option, with a default value of False. Not only is the option deprecated, but if it is not specified at all, mongo uses a default value of None, which ultimately gets transformed into True. The safe property has been replaced by WriteConcern.

Our application had defined a WriteConcern of 1 at the collection level, but it was getting overriden on individual calls by the debug toolbar's safe=False option. I had to explicitly pass w=1 on each insert, update, and remove call.

This bug exists with the most recent version, 1.9.


Christina Roberts


Django-toolbar support is removed from this project; Here is another
Hope it works. Closing issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.