Public method for column names already exists:
https://github.com/django/django/blob/00f5d2d110712af84fae2c5f9183a2ea48ce0a4a/django/core/management/commands/inspectdb.py#L265
This would allow overriding the default behaviour of command in a custom
`inspectdb`, for example when table names are already PascalCase (i.e.
`schema.FooBarBuzz`), etc. With default implementation, it will be
converted into `class SchemaFoobarbuzz(models.Model)`.
Proposed PR: https://github.com/django/django/pull/16883
--
Ticket URL: <https://code.djangoproject.com/ticket/34587>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* type: Uncategorized => Cleanup/optimization
* stage: Unreviewed => Accepted
Comment:
Seems like a valid request 👍
✔️ small & isolated refactor
✔️ no behaviour change
✔️ aids extendability
✔️ more consistent
✔️ PR already in place
Accepting :) (though it may still be rejected by someone else)
--
Ticket URL: <https://code.djangoproject.com/ticket/34587#comment:1>
* owner: nobody => andriykohut
* status: new => assigned
Comment:
Sounds reasonable, this should also allow folks to fix previously rejected
ticket on their own, e.g. #31847.
--
Ticket URL: <https://code.djangoproject.com/ticket/34587#comment:2>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/34587#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"f8172f45fc83af2315aefed77ee34b5654f5c347" f8172f4]:
{{{
#!CommitTicketReference repository=""
revision="f8172f45fc83af2315aefed77ee34b5654f5c347"
Fixed #34587 -- Allowed customizing table name normalization in inspectdb
command.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34587#comment:4>