If I call this django method, in a test, it yields a lot of models which are not installed.
These models are from other apps test code.
For example, when iI use apps.get_models()
I get MROBase1
from the django package polymorphic test code.
=> I want get all models which have a table in the database. In above question I got a model which exists just for testing, which is not on the database.
NB: I use Django 1.10
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…