hmarr/django-debug-toolbar-mongo — pull request #13 by brianz (2012-07-12 16:54:52+00:00)
Title: Fix "$query" KeyError when using PyMongo 2.2+

This appeared to be happening in the case where there were no PyMongo queries
and an empty dictionary was returned. Using dict.get fixes this problem, and
is backwards compatible with PyMongo < 2.2.

Fixes #13