From c6522eb812cd6caf6a8d9b776f9941dff8b6252d Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 19 Apr 2017 18:29:56 +0200 Subject: Django 1.8: fix apps management --- ishtar_common/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ishtar_common/backend.py b/ishtar_common/backend.py index 67218ffca..261e4dc6f 100644 --- a/ishtar_common/backend.py +++ b/ishtar_common/backend.py @@ -56,7 +56,7 @@ class ObjectPermBackend(ModelBackend): model_name = perm.split('_')[-1].lower() model = None for app in apps.get_apps(): - for modl in cache.get_models(app): + for modl in apps.get_models(app): if modl.__name__.lower() == model_name: model = modl if not model: -- cgit v1.2.3