Actually, you can probably replace all of the inspect and is_django_model method by using:

from django.db.models import get_models
all_models = get_models(app)