Revert "Make work with Django 1.7"

This reverts commit 6d33570fe43c0711643058f204229fdde6ce7278.