Fix tests for Django 1.6
Future compatibility.
Drop Python 2.6 support.