Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

django-trusts

django-trusts badger mascot holding a green key

Coverage

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

Other repositories

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

django_trusts-1.0.0rc1.tar.gz (59.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_trusts-1.0.0rc1-py3-none-any.whl (57.0 kB view details)

Uploaded Python 3

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

Hashes for django_trusts-1.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 f66f80882a2912901ba997ff1e996a9de1e70a2d832735e77120d93f2664f7a3
MD5 fd0d5b32a79caf6028b1dcbb578a58d2
BLAKE2b-256 78120b50697e6d49fbc75c4d8e866c5a2117d19b315bd5032a22be1bb98af9f6

See more details on using hashes here.

File details

Details for the file django_trusts-1.0.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_trusts-1.0.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 e65468b27840e2c21dd426b8a1be654b4cafd22ea1690cf1ad295aed6a2e5ae3
MD5 086931068ba03c78db8f282fcd8477c0
BLAKE2b-256 0fc0638f011b2da8ce6263369c3427ebd8cc450f7410d2d0d2c182d3598311e4

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0rc1 This release

2 files

0.10.3

1 file

0.10.2

1 file

0.10.1

1 file

0.10.0

1 file

0.9.6

1 file

0.9.5

1 file

0.9.4

1 file

0.9.3

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page