Changes between Version 16 and Version 17 of Ticket #18468
- Timestamp:
- Mar 23, 2020, 6:45:30 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #18468 – Description
v16 v17 3 3 That would be nice if it was possible to include comment on table / columns at creation time with the syncdb manage.py option. 4 4 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 ...'9 5 10 Thanks a lot 6 7 **new proposal** 8 9 We will develop the code such as below 10 11 {{{ 12 13 class 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 11 23 12 24 13 25 14 26 27 28 29 30 31 32