跳转到主要内容

将模型的verbose name和help_text移动到数据库注释中

项目描述

https://badge.fury.io/py/django-db-comments.svg https://travis-ci.org/vanadium23/django-db-comments.svg?branch=master https://codecov.io/gh/vanadium23/django-db-comments/branch/master/graph/badge.svg

将模型的verbose name和help_text移动到数据库注释中

Add to INSTALLED_APPS and see description in database.

文档

完整文档在 https://django-db-comments.readthedocs.io

快速入门

安装Django Db Comments

pip install django-db-comments

将其添加到您的 INSTALLED_APPS

INSTALLED_APPS = (
    ...
    'django_db_comments',
    ...
)

功能

  • 将verbose_name和help_text复制到数据库的列中,目前支持: Postgres

运行测试

代码真的工作吗?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

致谢

渲染此包使用的工具

历史

0.4.1 (2022-04-03)

  • 模型检测的bug修复和更多单元测试。(PR #13)

0.4.0 (2022-04-02)

  • 跳过代理、抽象和未管理模型。(由 @xjlin0 提交的 Issue #11)

0.3.1 (2021-08-02)

  • 更新 setup.py 中的元信息。

0.3.0 (2021-08-02)

  • 根据模型的 verbose_name 添加表注释。(由 @ssatoh17 提交的 PR #5)

0.2.2 (2019-05-19)

  • 将 psqlextra.backend 添加到 ALLOWED_ENGINES。(由 @shuribuzz 提交的 PR #4)

0.2.1 (2019-05-19)

  • 修复当 help_text 或 verbose_name 使用 django 的 ugettext_lazy 时的错误。(由 @ErhoSen 提交的 PR #1)

0.2.0 (2019-05-07)

  • PyPI上的首次发布。

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源代码发行版

django-db-comments-0.4.1.tar.gz (6.6 kB 查看哈希值)

上传时间 源代码

构建发行版

django_db_comments-0.4.1-py2.py3-none-any.whl (6.3 kB 查看哈希值)

上传时间 Python 2 Python 3

支持