def get_model_compat(app_label, model_name):
    """Get a model on multiple Django versions."""
    try:
        # django >= 1.7
        from django.apps import apps
        return apps.get_model(app_label, model_name)
    except __HOLE__:
        from django.db.models import get_model
        return get_model(app_label, model_name)
dataset/ETHPy150Open django-extensions/django-extensions/django_extensions/compat.py/get_model_compat