From f4158cf681fc189f222ebdef228ab52fdb3ec908 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 19 Aug 2021 09:55:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0002_alter_customfield_field_type.py | 18 ++++++++++++++++++ hb_server/apps/wf/models.py | 4 ++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 hb_server/apps/wf/migrations/0002_alter_customfield_field_type.py 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', '多选用户'),