try:
    from django.apps.registry import apps

    get_apps = apps.get_apps
    cache = None
except ImportError:
    from django.db.models.loading import cache

    get_apps = cache.get_apps
    apps = None


def get_app(app_label, emptyOK=False):
    """Return the app with the given label.

    This returns the app from the app registry on Django >= 1.7, and from
    the old-style cache on Django < 1.7.

    The ``emptyOK`` argument is ignored for Django >= 1.7.
    """
    if apps:
        return apps.get_app(app_label)
    else:
        return apps.get_app(app_label, emptyOK)


__all__ = ['get_app', 'get_apps']

@@ -41,16 +41,36 @@
 t apps%0A%0A
+    # Django %3E= 1.7%0A
     get_
@@ -175,16 +175,35 @@
  cache%0A%0A
+    # Django %3C 1.7%0A
     get_
@@ -529,37 +529,32 @@
 %0A        return 
-apps.
 get_app(app_labe
@@ -581,21 +581,16 @@
  return 
-apps.
 get_app(

Fix the new get_app compatibility function.