#18468: Add the ability to define comments in table / columns
-------------------------------------+-------------------------------------
Reporter: Marc Rechté | Owner:
| KimSoungRyoul
Type: New feature | Status: assigned
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by KimSoungRyoul:
Old description:
> Hello,
>
> That would be nice if it was possible to include comment on table /
> columns at creation time with the syncdb manage.py option.
>
> ....
> ....
>
> **new proposal** (kimsoungryoul : 2020.03.23)
>
> We will develop the code such as below
>
> {{{
>
> class AModel(models.Model):
> aaa = model.CharField(help_text="i am help_text",
> db_column_comment="i am db_comment",~~~)
>
> class Meta:
> db_table = "a_model_example_name"
> db_table_comment ="this is a_model comment ~~~~"
>
> }}}
>
> settings .py
> {{{
>
> ENABLE_DB_COMMENT_WITH_HELP_TEXT = False # default
>
> }}}
>
> if it's True
>
> help_text is used for db_column_comment
New description:
Hello,
That would be nice if it was possible to include comment on table /
columns at creation time with the syncdb manage.py option.
....
....
**new proposal** (kimsoungryoul : 2020.03.23)
We will develop the code such as below
{{{
class AModel(models.Model):
aaa = model.CharField(help_text="i am help_text",
db_column_comment="i am db_comment",~~~)
class Meta:
db_table = "a_model_example_name"
db_table_comment ="this is a_model comment ~~~~"
}}}
--
--
Ticket URL: <https://code.djangoproject.com/ticket/18468#comment:26>
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/065.53b54ef320582591270d5c19145473f2%40djangoproject.com.