Fix up the connector to work with both Django 1.6 and 1.5