django model field comment in database

前端 未结 3 1689
灰色年华
灰色年华 2021-01-18 19:57

this is the model class(django version 2.0)

class Host(models.Model):
    host_id=models.CharField(max_length=20,primary_key=True)
    host_label=models.Char         


        
3条回答
  •  再見小時候
    2021-01-18 20:37

    you can use python package: https://pypi.org/project/django-comment-migrate/, It has two characteristics:

    1. Automatic migration model help_text to comment
    2. Provide a command to migrate the comment of the specified app Examples

提交回复
热议问题