django-seal:提供查询集密封功能的Django应用程序

时间:2021-03-31 05:55:12
【文件属性】:
文件名称:django-seal:提供查询集密封功能的Django应用程序
文件大小:18KB
文件格式:ZIP
更新时间:2021-03-31 05:55:12
Python 詹加印章 Django应用程序提供了查询集密封功能,以强制正确使用only() / defer()和select_related() / prefetch_related() 。 安装 pip install django-seal 用法 # models.py from django . db import models from seal . models import SealableModel class Location ( SealableModel ): latitude = models . FloatField () longitude = models . FloatField () class SeaLion ( SealableModel ): height = models . PositiveIntegerField () w
【文件预览】:
django-seal-master
----setup.py(1KB)
----.gitignore(65B)
----LICENSE(1KB)
----setup.cfg(216B)
----.github()
--------workflows()
----README.rst(4KB)
----tests()
--------test_query.py(21KB)
--------__init__.py(0B)
--------test_models.py(9KB)
--------models.py(2KB)
--------migrations()
--------settings.py(237B)
----seal()
--------__init__.py(0B)
--------models.py(4KB)
--------descriptors.py(10KB)
--------query.py(3KB)
--------exceptions.py(65B)
----tox.ini(998B)

网友评论