#34587: Allow to override table2model conversion for inspectdb command
-------------------------------------+-------------------------------------
               Reporter:             |          Owner:  nobody
  crunchy_crow                       |
                   Type:             |         Status:  new
  Uncategorized                      |
              Component:  Core       |        Version:  4.2
  (Management commands)              |
               Severity:  Normal     |       Keywords:  inspectdb
           Triage Stage:             |      Has patch:  1
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  1
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 When implementing a custom inspectdb command by inheriting from
 `inspectdb.Command` users should be able to override the table name to
 model conversion logic.

 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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018842650bc2-d0527b24-3a5d-4475-a809-d9a7b4394e00-000000%40eu-central-1.amazonses.com.

Reply via email to