Commits

Anonymous committed 3ae9f6f

[multi-db] Fixed bug in manager.get_installed_models() that caused installed models list to always have only one model.

Comments (0)

Files changed (1)

django/db/models/manager.py

         for app in get_apps():
             for model in get_models(app):
                 all_models.append(model)
-                return set([m for m in all_models
-                            if m._meta.db_table in table_list])
+        return set([m for m in all_models
+                    if m._meta.db_table in table_list])
 
     def get_table_list(self):
         """Get list of tables accessible via my model's connection.