Fixed migration support for Django 1.7.