tags:

views:

77

answers:

1

Given a model's instance object, how can I get the data base table's name?

I don't want to specify names explicitly in the Meta class.

+5  A: 

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

model_instance._meta.db_table
Ber