#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.
>
> There could be a new Model Meta option like:
>    comment = 'This table is for storing blabla"
> And a new Field option like:
>    comment = 'This field is for ...'
>
> Thanks a lot

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**

 We will develop the code such as below

 {{{

 class AModel(models.Model):
      aaa = model.CharField(help_text="i am help_text", db_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:17>
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.a3eeb3f4b1c86a46d5171a0648d1565c%40djangoproject.com.

Reply via email to