Repository navigation
Releases: BenA-SA/drf-query-method
Releases · BenA-SA/drf-query-method
Release list
drf-query-method 0.3.0
Changed
- On Django 4.2 to 6.1,
add_query_method()(and sopatch()) now treatsQUERYas a safe method in Django's
CsrfViewMiddleware, matching Django 6.2.QUERYrequests no longer need a CSRF token on any supported version,
including session-authenticated requests through DRF'sSessionAuthentication.
Documentation
- README and usage docs explain CSRF for
QUERY, and the README no longer says the package is unreleased.
drf-query-method 0.2.0
Added
patch()makes django-rest-framework-datatables read
QUERYrequest bodies, so server-side DataTables can send their parameters as aQUERYbody.
Changed
filter_params()caches its result on the request.
drf-query-method 0.1.0
These are the changes that will go out in the next release.
Added
patch(), which addsQUERYsupport to DRF in place, and to django-filter'sDjangoFilterBackendwhen installed.- Opt-in routers, viewsets, filters, permissions, test clients and a django-filter backend, named after DRF's.
filter_params(), the URL query parameters with aQUERYrequest's body merged over them.add_query_method(), which lets Django versions before 6.2 dispatchQUERY.- Documentation for both approaches, and for sending
QUERYrequests from clients.
drf-query-method started out as a project generated from Cookiecutter PyPackage containing:
- Initial scaffold for drf-query-method.
src/drf_query_method/package with a py.typed marker- Tests with pytest and pytest-django
- CI via GitHub Actions: lint (Ruff), type check (ty), a Python/Django/DRF test matrix, coverage reporting
- Security scanning: CodeQL analysis for public repositories, Dependabot, and a Zizmor workflow audit
- Docs site with Zensical + mkdocstrings and a GitHub Pages deployment workflow
- Trusted publishing to PyPI with OIDC and build provenance attestation
justfilewith dev commands: qa, test, type-check, docs-serve, release- Issue templates, PR template, contributing guide, code of conduct, security policy
- BSD 3-Clause license, .editorconfig, .gitignore
Contributors
@BenA-SA (Ben Atkinson) created drf-query-method.