docs
This commit is contained in:
parent
ecdf44a64d
commit
ddcbcdf98a
Binary file not shown.
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 |
|
@ -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='是否有效'),
|
||||
),
|
||||
]
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue