version check on django to see how we wrap the CursorDebugWrapper

Attempts to circumvent the infinite loop for Django 1.6 by only modifying __getattr__ in a manner similar to how we handle the standard CursorWrapper.