How to read the name of the database table of the model instance?

For an instance of a model instance, how can I get the database table name?

I do not want to explicitly specify the names in the Meta class.

+60
django
24 Oct '08 at 10:43
source share
1 answer

Found the answer myself: the instance attribute _meta has information:

model_instance._meta.db_table 
+122
24 Oct '08 at 11:38
source share



All Articles