Code

Ticket #1524: management-installed-models.diff

File management-installed-models.diff, 634 bytes (added by akaihola, 8 years ago)

a wild guess at what the intended variable name is: not_installed_models

Line 
1Index: django/core/management.py
2===================================================================
3--- django/core/management.py   (revision 2530)
4+++ django/core/management.py   (working copy)
5@@ -114,7 +114,7 @@
6     not_installed_models = set(pending_references.keys())
7     if not_installed_models:
8         final_output.append('-- The following references should be added but depend on non-existant tables:')
9-        for klass in not_found_models:
10+        for klass in not_installed_models:
11             final_output.extend(['-- ' + sql for sql in
12                 _get_sql_for_pending_references(klass, pending_references)])
13