ASummer
ASummer

Reputation: 23

Setting the variable 'db_table' does not include the app prefix to table names

When using 'db_table' to explicitly set the database table name, how can you preserve the naming convention of "app_table_name"? The app name is removed.

Upvotes: 1

Views: 603

Answers (2)

Manoj Govindan
Manoj Govindan

Reputation: 74795

As far as I know the db_table option will get precedence over the existing convention of app name + model name. If you set it explicitly you will have to prefix the app name yourself.

Upvotes: 2

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 799420

You can't. Add the app to the table name yourself.

Upvotes: 1

Related Questions