Ticket #13323: applabel.diff

File applabel.diff, 589 bytes (added by chtito, 5 years ago)
  • django/db/models/loading.py

    diff --git a/django/db/models/loading.py b/django/db/models/loading.py
    index 3151b8a..c6b6583 100644
    a b class AppCache(object): 
    116116        self.write_lock.acquire()
    117117        try:
    118118            for app_name in settings.INSTALLED_APPS:
    119                 if app_label == app_name.split('.')[-1]:
     119                if app_label == app_name.split('.')[-1] or app_label == app_name:
    120120                    mod = self.load_app(app_name, False)
    121121                    if mod is None:
    122122                        if emptyOK:
Back to Top