Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use snake case for table names in the database #1123

Open
kkasra12 opened this issue Jun 28, 2023 · 0 comments
Open

use snake case for table names in the database #1123

kkasra12 opened this issue Jun 28, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@kkasra12
Copy link

kkasra12 commented Jun 28, 2023

as we know if the tablename is not mentioned in the Meta class, the default table name will be class.__name__.lower()+'s'

but if the class name is in CamelCase, it will create a total mess in the database. apparently, there is no way to automize this process (converting CamelCase into snake_case) in the Meta class, and table names should be hard coded for each class.

@kkasra12 kkasra12 added the enhancement New feature or request label Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant