Opened 6 years ago

Last modified 6 years ago

#25902 new New feature

app names with underscore conflict with many-to-many tables — at Initial Version

Reported by: Amos Onn Owned by: nobody
Component: Core (System checks) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

If you have an app called X with a model called Y with a m2m field called Z, the default table name for the m2m is X_Y_Z.
If you have an app called X_Y with a model called Z, the default table name for the model is also X_Y_Z.
If you have both, django breaks when creating the tables.
See a broken sample project at:

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top