Helpful django abstract models collection.
Project description
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表示自动启用。
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-model-helper-0.2.0.tar.gz
(15.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-model-helper-0.2.0.tar.gz.
File metadata
- Download URL: django-model-helper-0.2.0.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43a4a487dc33862da513de2742479d06ccd4f5d5e29b217e2c9441faa633515f
|
|
| MD5 |
05256299cc70bd3ec558e106cc34d87b
|
|
| BLAKE2b-256 |
4a7b22e356b96d6b4f43864043e74e38536c9cc3d5ae3f9053378959d2c72309
|
File details
Details for the file django_model_helper-0.2.0-py3-none-any.whl.
File metadata
- Download URL: django_model_helper-0.2.0-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14ed3adc3a03fe7d78862d6ed2d8b6de14deaec45ddabedc2e49e9715750a2c8
|
|
| MD5 |
1b06a721129df531d6300a3708270bfd
|
|
| BLAKE2b-256 |
054db506ffcf49159f5f13d663af165d29a000df89127b44678537cfadb0fd26
|