Skip to content

use snake case for table names in the database #1123

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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