Replace from django.db.models.loading import get_model with from django.apps import apps See [http://stackoverflow.com/questions/4881607/django-get-model-from-string](http://stackoverflow.com/questions/4881607/django-get-model-from-string)