ftobia/django-statsd — pull request #1 by jawnb (2014-04-26 20:48:23+00:00)
Title: Fix issue where db timings were not being patch properly for django 1.6 ...

...and DEBUG=False

The __getattr__ method previously implemented in django_statsd.patches.db does not function the same as CursorWrapper.__getattr__ in django 1.6. This is causing db timings to not be populated when DEBUG = False.

I ended up just making wrap_class generic enough to account for CursorDebugWrapper and CursorWrapper, as I feel it is a cleaner implementation.

I tested this against django 1.5.1 and 1.6.3, both worked as expected.