forked from mirror/MrDoc
优化文档标题字段长度限制至255个字符
This commit is contained in:
parent
5689f63b75
commit
a125918e67
18
app_doc/migrations/0040_auto_20220311_1600.py
Normal file
18
app_doc/migrations/0040_auto_20220311_1600.py
Normal file
@ -0,0 +1,18 @@
|
||||
# Generated by Django 2.2.24 on 2022-03-11 16:00
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('app_doc', '0039_auto_20211013_1021'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='doc',
|
||||
name='name',
|
||||
field=models.CharField(max_length=255, verbose_name='文档标题'),
|
||||
),
|
||||
]
|
@ -65,7 +65,7 @@ class ProjectToc(models.Model):
|
||||
|
||||
# 文档模型
|
||||
class Doc(models.Model):
|
||||
name = models.CharField(verbose_name="文档标题",max_length=50)
|
||||
name = models.CharField(verbose_name="文档标题",max_length=255)
|
||||
pre_content = models.TextField(verbose_name="编辑内容",null=True,blank=True)
|
||||
content = models.TextField(verbose_name="文档内容",null=True,blank=True)
|
||||
parent_doc = models.IntegerField(default=0,verbose_name="上级文档")
|
||||
|
Loading…
Reference in New Issue
Block a user