------------ django don't avoid the app label maybe uppercase, it should
be
'self.db_table = "%s_%s" % (self.app_label.lower(), self.model_name)'
--
Ticket URL: <https://code.djangoproject.com/ticket/30778>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Old description:
> if possible, to avoid any problems that might arise from this behavior.
> Django uses lowercase table names when it auto-generates table names from
> models, so this is mainly a consideration if you are overriding the table
> name via the db_table parameter.
>
> ------------ django don't avoid the app label maybe uppercase, it should
> be
> 'self.db_table = "%s_%s" % (self.app_label.lower(), self.model_name)'
New description:
if possible, to avoid any problems that might arise from this behavior.
Django uses lowercase table names when it auto-generates table names from
models, so this is mainly a consideration if you are overriding the table
name via the db_table parameter.
--django don't avoid the app label maybe uppercase, it should be
'self.db_table = "%s_%s" % (self.app_label.lower(), self.model_name)'
--
--
Ticket URL: <https://code.djangoproject.com/ticket/30778#comment:1>
* status: new => closed
* resolution: => wontfix
* component: Uncategorized => Database layer (models, ORM)
* version: 2.2 => master
* type: Uncategorized => Cleanup/optimization
Comment:
Thanks for this ticket, however proposed change would be a backward
incompatible. Moreover this behavior is in Django from the very beginning
and it isn't an issue that `app_label` is mixed-case, everything should
works properly.
--
Ticket URL: <https://code.djangoproject.com/ticket/30778#comment:2>