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.
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.
Found the answer myself: the _meta attribute of an instance has the information:
model_instance._meta.db_table