-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Code of Conduct
- I agree to follow Django's Code of Conduct
Feature Description
I can set global settings or meta data for DB classes for example:
DB_GLOBAL = {
"tables_name": "model_name",
"name_style": "snake_case"
}my ideas for now is the class metadata settings like indexing, i can set all tables to index created_at columns or instead of user {appName}_{modelName}
to use model_name dirctly
Problem
when i was working in a project with like 25 tables, i have to type meta data for each table, when i did search for solution, i saw answer to change the lib source code which is so bad and all of my metadata where serving the same logic
Request or proposal
proposal
Additional Details
i have been using python with django and fastapi for 3 years
i really would love to help in this lib and i was really happy to finally find a part where i can help with
Implementation Suggestions
it will be very simple, ill handle some keywords like {APP_NAME}, {MODEL_NAME}, or even static name like "myapp_{APP_NAME}" so it will be in the db like "myapp_payment"
he can use in the class camelCase but in the global settings use snake_case in the DB level, so on
Metadata
Metadata
Assignees
Labels
Type
Projects
Status