This release is a pre-release and may not be stable for production use.
django-trusts
django-trusts is a Django permission system for object-level authorization.
It integrates with Django's authentication backend interface, allowing
applications to use familiar checks such as
user.has_perm(permission, object) while defining authorization policies
with ordinary Django models.
How permissions are represented
A trust model is the application-owned Django model from which three authorization paths begin:
- user — who is requesting access;
- permission — the operation being requested; and
- content — the object being protected.
Each matching trust record is a candidate grant. A trust model is often an explicit many-to-many relation model, but it may represent another relational shape. More than one complete trust may reach the same protected model; each is an alternative grant and the branches combine with OR.
django-trusts supplies the compiler and authorization APIs. It does not impose a permission schema, grant editor, or application workflow.
Usage
Start with Installation in the usage guide.
The RST guide covers models, backend configuration, trust registration
(both one-argument path lambdas and Django __ strings,
shown together),
named filters, object and queryset authorization, and inherited relationships.
Other documents
- Security audit guide
- Migration boundary
- Supported Python, Django, and database combinations
- Development and contribution guide
- BSD 2-Clause License
Other repositories
- django-trusts-zero — continuation of the concrete django-trusts 0.x model
- django-trusts-zero-example — runnable application using Zero
- django-trusts-gh-permissions — organization, team, and repository relationship reference
- django-trusts-ordered-fold — provisional PostgreSQL ordered allow/deny extension
- django-trusts-windows-acl — Windows ACL example built on the OrderedFold extension
Copyright BeeDesk, Inc., 2015–2026. Released under the BSD 2-Clause License.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_trusts-1.0.0rc1.tar.gz.
File metadata
- Download URL: django_trusts-1.0.0rc1.tar.gz
- Upload date:
- Size: 59.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f66f80882a2912901ba997ff1e996a9de1e70a2d832735e77120d93f2664f7a3
|
|
| MD5 |
fd0d5b32a79caf6028b1dcbb578a58d2
|
|
| BLAKE2b-256 |
78120b50697e6d49fbc75c4d8e866c5a2117d19b315bd5032a22be1bb98af9f6
|
File details
Details for the file django_trusts-1.0.0rc1-py3-none-any.whl.
File metadata
- Download URL: django_trusts-1.0.0rc1-py3-none-any.whl
- Upload date:
- Size: 57.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e65468b27840e2c21dd426b8a1be654b4cafd22ea1690cf1ad295aed6a2e5ae3
|
|
| MD5 |
086931068ba03c78db8f282fcd8477c0
|
|
| BLAKE2b-256 |
0fc0638f011b2da8ce6263369c3427ebd8cc450f7410d2d0d2c182d3598311e4
|