Ticket #1796: new_management.patch
File new_management.patch, 753 bytes (added by , 18 years ago) |
---|
-
django/core/management.py
1174 1174 1175 1175 def run_shell(use_plain=False): 1176 1176 "Runs a Python interactive interpreter. Tries to use IPython, if it's available." 1177 # Force loading all the models in the installed apps. Otherwise, we 1178 # can get into some weird problems where many_to_many relations fail because 1179 # field options differ (perhaps due to permisions): 1180 from django.db.models.loading import get_models 1181 loaded_models = get_models() 1182 1177 1183 try: 1178 1184 if use_plain: 1179 1185 # Don't bother loading IPython, because the user wants plain Python.