def get_models_compat(app_label):
    """Get models on multiple Django versions."""
    try:
        # django >= 1.7
        from django.apps import apps
        return apps.get_app_config(app_label).get_models()
    except __HOLE__:
        from django.db.models import get_models
        return get_models(app_label)
dataset/ETHPy150Open django-extensions/django-extensions/django_extensions/compat.py/get_models_compat