【文件属性】:
文件名称:django-rest-tools:Django Rest Framework的工具
文件大小:28KB
文件格式:ZIP
更新时间:2021-05-13 17:28:31
Python
django-rest-tools
从pypi安装最后一个稳定版本
pip install django-rest-tools
安装开发版本
pip install https://github.com/quiqueporta/django-rest-tools/tarball/master
筛选器
NearToPointFilter
views.py:
from django_rest_tools . filters import NearToPointFilter
class LocationsList ( generics . ListAPIView ):
queryset = Location . objects . all ()
serializer_class = LocationListSerializer
filter_backends = (
【文件预览】:
django-rest-tools-master
----.gitignore(710B)
----README.rst(3KB)
----tests()
--------manage.py(266B)
--------django_rest_tools_app()
--------django_rest_tools_tests()
----LICENSE(34KB)
----runtests.py(401B)
----.coveragerc(31B)
----requirements-test.txt(66B)
----AUTHORS(81B)
----requirements.txt(39B)
----CHANGES.rst(312B)
----django_rest_tools()
--------filters.py(2KB)
--------fields.py(2KB)
--------__init__.py(404B)
----setup.py(1KB)
----.travis.yml(660B)