【文件属性】:
文件名称:django-xor-formfields:Django的互斥字段和小部件
文件大小:11KB
文件格式:ZIP
更新时间:2021-05-26 19:24:20
unmaintained Python
互斥表单字段
轻松将互斥字段添加到Django表单。
安装
聚酰亚胺
pip install django-xor-formfields
来源
python setup.py install
互斥表单字段示例(TextInput和Select):
# with a widget inference
MutuallyExclusiveValueField(
fields=(forms.TypedChoiceField(choices=[(1,1), (2,2)], coerce=int),
forms.IntegerField()))
# manual widget creation (allows for the placeholder attr & other customization)
MutuallyExclusiveValueField(
【文件预览】:
django-xor-formfields-master
----MANIFEST.in(76B)
----xorformfields()
--------tests.py(16KB)
--------__init__.py(0B)
--------models.py(0B)
--------test_settings.py(286B)
--------forms()
--------static()
----.travis.yml(194B)
----LICENSE(1KB)
----setup.py(1KB)
----README.md(2KB)
----.gitignore(23B)