django-enum-choices:支持Python枚举的Django选择字段

时间:2021-05-23 00:25:59
【文件属性】:
文件名称:django-enum-choices:支持Python枚举的Django选择字段
文件大小:50KB
文件格式:ZIP
更新时间:2021-05-23 00:25:59
python django enums Python django-enum-choices 用于自定义Django选择字段 目录 django.forms.Form用法 django-filter用法 通过使用Meta内部类并继承EnumChoiceFilterMixin 通过在FilterSet显式声明该字段 Postgres ArrayField的用法 Django Rest Framework的用法 结合使用serializers.ModelSerializer和EnumChoiceModelSerializerMixin 在不使用EnumChoiceModelSerializerMixin情况下使用serializers.ModelSerializer 使用serializers.Serializer的子类 序列化PostgreSQL ArrayField 实施细节 使用Python的enum.auto 发展 安装 p
【文件预览】:
django-enum-choices-master
----MANIFEST.in(170B)
----.circleci()
--------config.yml(2KB)
----django_enum_choices()
--------validators.py(572B)
--------exceptions.py(52B)
--------utils.py(2KB)
--------admin.py(2KB)
--------__init__.py(376B)
--------choice_builders.py(615B)
--------fields.py(7KB)
--------forms.py(1KB)
--------tests()
--------filters.py(1KB)
--------__version__.py(22B)
--------serializers.py(4KB)
----examples()
--------manage.py(628B)
--------examples()
----tox.ini(1KB)
----pytest.ini(110B)
----LICENSE(1KB)
----setup.cfg(237B)
----setup.py(4KB)
----README.md(21KB)
----.gitignore(2KB)

网友评论