#30778: keep the table name lowercase
-------------------------------+--------------------------------------
Reporter: a372661369 | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 2.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Description changed by a372661369:
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>
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/068.c6494f007720b5f336b530221d2fb01c%40djangoproject.com.