This commit is contained in:
caoqianming 2020-05-25 17:10:59 +08:00
parent ecdf44a64d
commit ddcbcdf98a
6 changed files with 25 additions and 0 deletions

BIN
docs/~$模块细分.docx Normal file

Binary file not shown.

0
docs/模块细分.docx Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 687 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 63 KiB

View File

@ -0,0 +1,23 @@
# Generated by Django 3.0.5 on 2020-05-20 01:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('system', '0003_auto_20200517_1400'),
]
operations = [
migrations.AddField(
model_name='dict',
name='code',
field=models.CharField(blank=True, max_length=30, null=True, verbose_name='代码'),
),
migrations.AddField(
model_name='dict',
name='enabled',
field=models.BooleanField(default=True, verbose_name='是否有效'),
),
]

View File

@ -26,6 +26,7 @@ class Dict(SoftModel):
数据字典
"""
name = models.CharField('名称', max_length=30, unique=True)
code = models.CharField('代码', max_length=30, null=True, blank=True)
desc = models.TextField('描述', blank=True, null=True)
enabled = models.BooleanField('是否有效', default=True)
type = models.ForeignKey(