# 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`依赖关系。
Raw data
{
"_id": null,
"home_page": null,
"name": "django-model-helper",
"maintainer": "Li HuiTao",
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "django-model-helper",
"author": "Li HuiTao",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/67/79/16e6b9fc238365f77a6709b03467254b3e9a0bfbd45b57de85db6e221d68/django-model-helper-0.2.1.tar.gz",
"platform": null,
"description": "# django-model-helper\r\n\r\nHelpful django abstract models collection.\r\n\r\n## \u62bd\u8c61\u7c7b\u5217\u8868\r\n\r\n- WithAddModTimeFields\r\n- WithArgsKwargsFields\r\n- WithConfigFields\r\n- WithCountFields\r\n- WithDeletedStatusFields\r\n- WithDisplayOrderFields\r\n- WithEnabledStatusFields\r\n- WithExpireTimeFields\r\n- WithHitsFields\r\n- WithHotspotFields\r\n- WithInitiatorFields\r\n- WithJsonDataFields\r\n- WithLockStatusFields\r\n- WithOwnerFields\r\n- WithPublishStatusFields\r\n- WithSimpleNRRDStatusFields\r\n- WithSimplePRSFStatusFields\r\n- WithSimpleResultFields\r\n- WithUidFields\r\n- WithUserFields\r\n- WithUserFields\r\n- WithVisibleFields\r\n\r\n## \u7248\u672c\u8bb0\u5f55\r\n\r\n### v0.1.0\r\n\r\n- \u7248\u672c\u9996\u53d1\u3002\r\n\r\n### v0.1.1\r\n\r\n- WithExpireTimeFields\u6dfb\u52a0default_expires\u5c5e\u6027\u3002\r\n- WithUidFields\u6dfb\u52a0uidgen\u5c5e\u6027\uff0c\u7528\u4e8e\u751f\u6210uid\u9ed8\u8ba4\u503c\u3002\r\n\r\n### v0.1.5\r\n\r\n- \u6dfb\u52a0WithVisibleFields\u62bd\u8c61\u7c7b\u3002\r\n- \u6dfb\u52a0WithHotspotFields\u62bd\u8c61\u7c7b\u3002\r\n\r\n### v0.1.9\r\n\r\n- \u6dfb\u52a0WithArgsKwargsFields\u62bd\u8c61\u7c7b\u3002\r\n- \u4fee\u6b63\u5f3a\u5236\u8981\u6c42`GLOBAL_LOCK_CONFIG`\u914d\u7f6e\u9879\u7684\u95ee\u9898\u3002\r\n\r\n### v0.1.12\r\n\r\n- \u6dfb\u52a0`WithSimpleResultFields.result_time`\u5b57\u6bb5\u3002\r\n- \u6dfb\u52a0`WithEnabledStatusFields`\u7684action\u673a\u5236\u3002\r\n - \u6dfb\u52a0`actions.set_enabled_for_selected`\u548c`actions.set_disabled_for_selected`\u3002\r\n - \u6dfb\u52a0`admin.WithEnabledStatusFieldsAdmin`.\r\n - \u6dfb\u52a0`WithEnabledStatusFields.Meta.permissions`.\r\n - \u6dfb\u52a0`WithEnabledStatusFields.enabled_display`.\r\n- \u6dfb\u52a0`WithDeletedStatusFields`\u7684action\u673a\u5236\u3002\r\n - \u6dfb\u52a0`actions.set_deleted_for_selected`\u548c`actions.set_undeleted_for_selected`\u3002\r\n - \u6dfb\u52a0`admin.WithDeletedStatusFieldsAdmin`.\r\n - \u6dfb\u52a0`WithDeletedStatusFields.Meta.permissions`.\r\n - \u6dfb\u52a0`WithDeletedStatusFields.set_undeleted`\u548c`WithDeletedStatusFields.deleted_display`.\r\n- \u6dfb\u52a0`WithVisibleFields`\u7684action\u673a\u5236\u3002\r\n - \u6dfb\u52a0`actions.set_visible_for_selected`\u548c`actions.set_hidden_for_selected`\u3002\r\n - \u6dfb\u52a0`admin.WithVisibleFieldsAdmin`.\r\n - \u6dfb\u52a0`WithVisibleFields.Meta.permissions`.\r\n - \u6dfb\u52a0`WithVisibleFields.visible_display`.\r\n- \u6dfb\u52a0`WithHotspotFields`\u7684action\u673a\u5236\u3002\r\n - \u6dfb\u52a0`actions.set_hotspot_for_selected`\u548c`actions.clear_hotspot_for_selected`\u3002\r\n - \u6dfb\u52a0`admin.WithHotspotFieldsAdmin`.\r\n - \u6dfb\u52a0`WithHotspotFields.Meta.permissions`.\r\n - \u6dfb\u52a0`WithHotspotFields.hotspot_display`.\r\n - \u4fee\u6539`WithHotspotFields.set_non_hotspot`\u4e3a`WithHotspotFields.clear_hotspot`\u3002\r\n- **\u6ce8\u610f\uff1a\u6240\u6709\u76f8\u5173\u6a21\u578b\u90fd\u9700\u8981\u505a\u6a21\u578b\u66f4\u65b0\u3002\u5373\uff1a`python manage.py migrate`**\r\n\r\n### v0.2.0\r\n\r\n- \u6dfb\u52a0`WithHitsFields`\u62bd\u8c61\u6a21\u578b\u3002\r\n- \u6dfb\u52a0`WithPublishFields`\u62bd\u8c61\u6a21\u578b\u3002\r\n- \u6dfb\u52a0`WithOwnerFields`\u62bd\u8c61\u6a21\u578b\u3002\r\n- \u6dfb\u52a0`WithInitiatorFields`\u62bd\u8c61\u6a21\u578b\u3002\r\n- \u6dfb\u52a0`WithSimplePRSFStatusFields`\u62bd\u8c61\u6a21\u578b\u3002\r\n- \u4fee\u6539`WithCountFields`\u62bd\u8c61\u7c7b\u7684\u589e\u51cf\u673a\u5236\uff0c\u5220\u9664`globallock`\u4f9d\u8d56\uff0c\u6dfb\u52a0`WithCountFields.last_count_changed_time`\u5b57\u6bb5\u3002\r\n- \u4fee\u6539`WithArgsKwargs`\u62bd\u8c61\u6a21\u578b\u4f7f\u7528yaml\u8fdb\u884c\u5e8f\u5217\u5316\u3002\r\n- \u4fee\u6539`WithEnabledStatusFields`\u62bd\u8c61\u6a21\u578b\u589e\u52a0`auto_enable`\u7684\u8bbe\u7f6e\uff0c\u9ed8\u8ba4\u4e3atrue\u8868\u793a\u81ea\u52a8\u542f\u7528\u3002\r\n\r\n### v0.2.1\r\n\r\n- \u6dfb\u52a0`pydantic`\u4f9d\u8d56\u5173\u7cfb\u3002\r\n- \u5220\u9664`django-redis`\u4f9d\u8d56\u5173\u7cfb\u3002\r\n",
"bugtrack_url": null,
"license": "Apache License, Version 2.0",
"summary": "Helpful django abstract models collection.",
"version": "0.2.1",
"project_urls": null,
"split_keywords": [
"django-model-helper"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "bc2d0d04b04b7f7f51335ddc1043dedcf3485e7a716a420fb699d2d7d95d2ba5",
"md5": "05efcbbcc7573f058efc36d1952c4ae5",
"sha256": "2e1b7af0b3af31b4367049e338a75b7d5eb9126ed2497d058fac365c12c7d13a"
},
"downloads": -1,
"filename": "django_model_helper-0.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "05efcbbcc7573f058efc36d1952c4ae5",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 15937,
"upload_time": "2024-12-23T02:58:03",
"upload_time_iso_8601": "2024-12-23T02:58:03.568056Z",
"url": "https://files.pythonhosted.org/packages/bc/2d/0d04b04b7f7f51335ddc1043dedcf3485e7a716a420fb699d2d7d95d2ba5/django_model_helper-0.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "677916e6b9fc238365f77a6709b03467254b3e9a0bfbd45b57de85db6e221d68",
"md5": "32480968acadf17cd9f0dbbed694cff5",
"sha256": "e99a908bbf0ced47f6d95a297ea3537c49654b1627d02436fde01e23431dfef1"
},
"downloads": -1,
"filename": "django-model-helper-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "32480968acadf17cd9f0dbbed694cff5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 15627,
"upload_time": "2024-12-23T02:58:04",
"upload_time_iso_8601": "2024-12-23T02:58:04.786596Z",
"url": "https://files.pythonhosted.org/packages/67/79/16e6b9fc238365f77a6709b03467254b3e9a0bfbd45b57de85db6e221d68/django-model-helper-0.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-23 02:58:04",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "django-model-helper"
}