Get rid of Django 1.7 get_query_set warnings.
Support Django 1.7 migrations.