django-debug-toolbar-mongo icon indicating copy to clipboard operation
django-debug-toolbar-mongo copied to clipboard

Getting an exception

Open apolkosnik opened this issue 8 years ago • 1 comments

Django Version: 1.8.15 Exception Type: TypeError Exception Value: init() got an unexpected keyword argument 'safe' Exception Location: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pymongo/collection.py in update, line 2241 Python Executable: /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python Python Version: 2.7.6 Pymongo 3.x.0 (2.9.4 worked fine), tested up to 3.3.0 mongoengine 0.10.6

apolkosnik avatar Nov 04 '16 03:11 apolkosnik

commenting out line 85 in debug_toolbar_mongo/operation_tracker.py:

safe=safe,

fixed it for me.

apolkosnik avatar Nov 04 '16 03:11 apolkosnik