I have a model and have a model manager for this model. I'm writing some sql in the model manager, and I need the table name of the model in sql. I know the name of table is combined by metadata app_label and db_name, but is it possible that I can access them from manager class? I know I can create an model instance in the manager, but I would rather not do that..
Thanks very much!
_meta.db_table
is giving you a relation-does-not-exist error, you may have a mixed-case app or table name, and may need quotes around the table name. See stackoverflow.com/questions/55297807/… or