浏览代码

Stopped calling get_models() for a side effect.

Aymeric Augustin 11 年之前
父节点
当前提交
5892a83b18
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      django/core/management/commands/shell.py

+ 1 - 1
django/core/management/commands/shell.py

@@ -67,7 +67,7 @@ class Command(NoArgsCommand):
         # XXX: (Temporary) workaround for ticket #1796: force early loading of all
         # models from installed apps.
         from django.apps import apps
-        apps.get_models()
+        apps.populate_models()
 
         use_plain = options.get('plain', False)
         no_startup = options.get('no_startup', False)