perf: 修复接口文档 修复迁移文件

This commit is contained in:
feng626
2022-08-08 19:18:45 +08:00
parent 87df92ea92
commit a7c82f94cc
7 changed files with 18 additions and 7 deletions

View File

@@ -14,7 +14,7 @@ class Platform(models.Model):
('gbk', 'GBK'),
)
name = models.SlugField(verbose_name=_("Name"), unique=True, allow_unicode=True)
category = models.CharField(max_length=16, choices=Category.choices, verbose_name=_("Category"))
category = models.CharField(max_length=16, choices=Category.choices, default=Category.HOST, verbose_name=_("Category"))
type = models.CharField(choices=AllTypes.choices, max_length=32, default='Linux', verbose_name=_("Type"))
charset = models.CharField(default='utf8', choices=CHARSET_CHOICES, max_length=8, verbose_name=_("Charset"))
meta = JsonDictTextField(blank=True, null=True, verbose_name=_("Meta"))