自定义字段修改
This commit is contained in:
parent
172f7bae6c
commit
f4158cf681
|
@ -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='类型'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -73,13 +73,13 @@ class CustomField(BaseModel):
|
||||||
('string', '字符串'),
|
('string', '字符串'),
|
||||||
('int', '整型'),
|
('int', '整型'),
|
||||||
('float', '浮点'),
|
('float', '浮点'),
|
||||||
('bol', '布尔'),
|
('boolean', '布尔'),
|
||||||
('date', '日期'),
|
('date', '日期'),
|
||||||
('datetime', '日期时间'),
|
('datetime', '日期时间'),
|
||||||
('radio', '单选'),
|
('radio', '单选'),
|
||||||
('checkbox', '多选'),
|
('checkbox', '多选'),
|
||||||
('select', '单选下拉'),
|
('select', '单选下拉'),
|
||||||
('mutiselect', '多选下拉'),
|
('selects', '多选下拉'),
|
||||||
('textarea', '文本域'),
|
('textarea', '文本域'),
|
||||||
('selectuser', '单选用户'),
|
('selectuser', '单选用户'),
|
||||||
('selectusers', '多选用户'),
|
('selectusers', '多选用户'),
|
||||||
|
|
Loading…
Reference in New Issue