没有合适的资源?快使用搜索试试~ 我知道了~
django-polymodels:Django的多态模型实现
共28个文件
py:19个
yml:2个
rst:1个
需积分: 10 0 下载量 198 浏览量
2021-05-04
14:50:45
上传
评论
收藏 24KB ZIP 举报
温馨提示
django-polymodels django应用程序,提供了一种简单的方法来检索转换为原始ContentType模型类型。 安装 >>> pip install django - polymodels 确保'django.contrib.contenttypes'和'polymodels'在您的INSTALLED_APPS中 INSTALLED_APPS += ('django.contrib.contenttypes', 'polymodels') 用法 子类PolymorphicModel ,一个抽象模型类。 from django.db import models from polymodels.models import PolymorphicModel class Animal(PolymorphicModel): name = models.CharFiel
资源推荐
资源详情
资源评论
收起资源包目录
django-polymodels-master.zip (28个子文件)
django-polymodels-master
MANIFEST.in 34B
README.rst 5KB
.coveragerc 61B
.github
workflows
test.yml 1KB
release.yml 916B
tests
models.py 1KB
test_forms.py 1KB
test_managers.py 8KB
__init__.py 0B
migrations
__init__.py 0B
0001_initial.py 6KB
settings.py 258B
test_related.py 601B
test_fields.py 8KB
base.py 304B
test_models.py 8KB
forms.py 397B
tox.ini 1KB
LICENSE 1KB
setup.cfg 191B
polymodels
models.py 7KB
managers.py 4KB
utils.py 664B
__init__.py 55B
fields.py 6KB
forms.py 989B
setup.py 1KB
.gitignore 70B
共 28 条
- 1
资源评论
雪地女王
- 粉丝: 96
- 资源: 4601
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功