Changes between Version 16 and Version 17 of Ticket #18468


Ignore:
Timestamp:
Mar 23, 2020, 6:45:30 AM (5 years ago)
Author:
KimSoungRyoul
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18468 – Description

    v16 v17  
    33That would be nice if it was possible to include comment on table / columns at creation time with the syncdb manage.py option.
    44
    5 There could be a new Model Meta option like:
    6    comment = 'This table is for storing blabla"
    7 And a new Field option like:
    8    comment = 'This field is for ...'
    95
    10 Thanks a lot
     6
     7**new proposal**
     8
     9We will develop the code such as below
     10
     11{{{
     12
     13class AModel(models.Model):
     14     aaa = model.CharField(help_text="i am help_text", db_comment="i am db_comment",~~~)
     15     
     16     class Meta:
     17           db_table = "a_model_example_name"
     18           db_table_comment ="this is a_model comment ~~~~"
     19   
     20}}}
     21
     22     
    1123
    1224
    1325
    1426
     27
     28
     29
     30
     31
     32
Back to Top