mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
Merge pull request #273 from dmishe/py3_introspection_regression
[py3] Fixed installed_models filtering.
This commit is contained in:
commit
71d07fb048
@ -991,7 +991,7 @@ class BaseDatabaseIntrospection(object):
|
|||||||
for model in models.get_models(app):
|
for model in models.get_models(app):
|
||||||
if router.allow_syncdb(self.connection.alias, model):
|
if router.allow_syncdb(self.connection.alias, model):
|
||||||
all_models.append(model)
|
all_models.append(model)
|
||||||
tables = map(self.table_name_converter, tables)
|
tables = list(map(self.table_name_converter, tables))
|
||||||
return set([
|
return set([
|
||||||
m for m in all_models
|
m for m in all_models
|
||||||
if self.table_name_converter(m._meta.db_table) in tables
|
if self.table_name_converter(m._meta.db_table) in tables
|
||||||
|
Loading…
Reference in New Issue
Block a user