Prepare for Django 1.11

Thom Wiggers
2017-03-08T20:35:48+01:00

This tests our code under Django 1.11, which is coming out soon™.

It also fixes a Django 1.11-breaking migration.