至少在__version__ = '2.6.0'的时候,给字段添加help_text的时候,在数据库的ddl语句里面是没有comment的. 看了下源码,顺藤摸瓜,最终定位到了字段(Field类)的__ddl__函数, 源码这里. 如下: def __ddl__(self, column_type): """Return a list of Node instances that defines the column.""" ddl = [sel
Model 字段参考 (Model field reference)¶ 本文档包含所有 字段选项 (field options) 的内部细节和 Django 已经提供的 field types . 参见 如果内置的字段不能满足你的应用,你可以很容易地If the built-in fields don’t do the trick, you can easily 编写自定义 model 字段 (write your own custom model fields). 注意 从技术上讲, mode