django-model-helper
Helpful django abstract models collection.
抽象类列表
- WithAddModTimeFields
- WithArgsKwargsFields
- WithConfigFields
- WithCountFields
- WithDeletedStatusFields
- WithDisplayOrderFields
- WithEnabledStatusFields
- WithExpireTimeFields
- WithHitsFields
- WithHotspotFields
- WithInitiatorFields
- WithJsonDataFields
- WithLockStatusFields
- WithOwnerFields
- WithPublishStatusFields
- WithSimpleNRRDStatusFields
- WithSimplePRSFStatusFields
- WithSimpleResultFields
- WithUidFields
- WithUserFields
- WithUserFields
- WithVisibleFields
版本记录
v0.1.0
- 版本首发。
v0.1.1
- WithExpireTimeFields添加default_expires属性。
- WithUidFields添加uidgen属性,用于生成uid默认值。
v0.1.5
- 添加WithVisibleFields抽象类。
- 添加WithHotspotFields抽象类。
v0.1.9
- 添加WithArgsKwargsFields抽象类。
- 修正强制要求
GLOBAL_LOCK_CONFIG配置项的问题。
v0.1.12
- 添加
WithSimpleResultFields.result_time字段。 - 添加
WithEnabledStatusFields的action机制。- 添加
actions.set_enabled_for_selected和actions.set_disabled_for_selected。 - 添加
admin.WithEnabledStatusFieldsAdmin. - 添加
WithEnabledStatusFields.Meta.permissions. - 添加
WithEnabledStatusFields.enabled_display.
- 添加
- 添加
WithDeletedStatusFields的action机制。- 添加
actions.set_deleted_for_selected和actions.set_undeleted_for_selected。 - 添加
admin.WithDeletedStatusFieldsAdmin. - 添加
WithDeletedStatusFields.Meta.permissions. - 添加
WithDeletedStatusFields.set_undeleted和WithDeletedStatusFields.deleted_display.
- 添加
- 添加
WithVisibleFields的action机制。- 添加
actions.set_visible_for_selected和actions.set_hidden_for_selected。 - 添加
admin.WithVisibleFieldsAdmin. - 添加
WithVisibleFields.Meta.permissions. - 添加
WithVisibleFields.visible_display.
- 添加
- 添加
WithHotspotFields的action机制。- 添加
actions.set_hotspot_for_selected和actions.clear_hotspot_for_selected。 - 添加
admin.WithHotspotFieldsAdmin. - 添加
WithHotspotFields.Meta.permissions. - 添加
WithHotspotFields.hotspot_display. - 修改
WithHotspotFields.set_non_hotspot为WithHotspotFields.clear_hotspot。
- 添加
- 注意:所有相关模型都需要做模型更新。即:
python manage.py migrate
v0.2.0
- 添加
WithHitsFields抽象模型。 - 添加
WithPublishFields抽象模型。 - 添加
WithOwnerFields抽象模型。 - 添加
WithInitiatorFields抽象模型。 - 添加
WithSimplePRSFStatusFields抽象模型。 - 修改
WithCountFields抽象类的增减机制,删除globallock依赖,添加WithCountFields.last_count_changed_time字段。 - 修改
WithArgsKwargs抽象模型使用yaml进行序列化。 - 修改
WithEnabledStatusFields抽象模型增加auto_enable的设置,默认为true表示自动启用。
v0.2.1
- 添加
pydantic依赖关系。 - 删除
django-redis依赖关系。
v0.2.2
- 在
WithXXXAdmin中添加关联的actions。 - 在
WitnOwnerFields中添加is_owenr方法。 - 在
WithInitiatorFields中添加is_initiator方法。 - 引入i18n来处理字段名称(部分)。
v0.2.3
- 添加文件树基础模型
FileSystemNode.
Metadata
Release files for django-model-helper 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_model_helper-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for django_model_helper-0.2.3-py3-none-any.whl |
Release files / django_model_helper-0.2.3-py3-none-any.whl
| Download URL | django_model_helper-0.2.3-py3-none-any.whl |
|---|---|
| Size | 20.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8763a8a79c541308b2888cbaeab2931215cecd3a2defe82ccf280f26ba60b37a
|
|
BLAKE2b-256 checksum How to use checksums |
9175217ae2e46d3bdcf76f49bbae2334ef448c1a6b4b33ab0bc3bd7ec59d78a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.12
|
Security for django-model-helper 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.