diff --git a/hb_server/apps/wf/migrations/0002_alter_customfield_field_type.py b/hb_server/apps/wf/migrations/0002_alter_customfield_field_type.py new file mode 100644 index 0000000..1dc2e5f --- /dev/null +++ b/hb_server/apps/wf/migrations/0002_alter_customfield_field_type.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.6 on 2021-08-19 01:55 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('wf', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='customfield', + name='field_type', + field=models.IntegerField(choices=[('string', '字符串'), ('int', '整型'), ('float', '浮点'), ('boolean', '布尔'), ('date', '日期'), ('datetime', '日期时间'), ('radio', '单选'), ('checkbox', '多选'), ('select', '单选下拉'), ('selects', '多选下拉'), ('textarea', '文本域'), ('selectuser', '单选用户'), ('selectusers', '多选用户'), ('file', '附件')], help_text='5.字符串,10.整形,15.浮点型,20.布尔,25.日期,30.日期时间,35.单选框,40.多选框,45.下拉列表,50.多选下拉列表,55.文本域,60.用户名, 70.多选的用户名, 80.附件(只保存路径,多个使用逗号隔开)', verbose_name='类型'), + ), + ] diff --git a/hb_server/apps/wf/models.py b/hb_server/apps/wf/models.py index 4482162..3e839f1 100644 --- a/hb_server/apps/wf/models.py +++ b/hb_server/apps/wf/models.py @@ -73,13 +73,13 @@ class CustomField(BaseModel): ('string', '字符串'), ('int', '整型'), ('float', '浮点'), - ('bol', '布尔'), + ('boolean', '布尔'), ('date', '日期'), ('datetime', '日期时间'), ('radio', '单选'), ('checkbox', '多选'), ('select', '单选下拉'), - ('mutiselect', '多选下拉'), + ('selects', '多选下拉'), ('textarea', '文本域'), ('selectuser', '单选用户'), ('selectusers', '多选用户'),