Skip to content

use snake case for table names in the database #1123

@kkasra12

Description

@kkasra12

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions