Fixes test errors

Drops support for Django 1.4 and Python 2.6