Per object permissions for Django
Actively maintained. Last release 6 weeks ago, commits in 21 of the last 26 weeks. A safe choice.
pip install django-guardiandjango-guardian
django-guardian is an implementation of per-object permissions on top
of Django’s authorization backend. Read an introduction to per-object permissions on djangoadvent articles.
Documentation
Online documentation is available at https://django-guardian.readthedocs.io/.
See real-world usage: Check out Who Uses Guardian to see how thousands of projects worldwide use django-guardian in production.
Contributing
Please read CONTRIBUTING.md before opening a pull request. It documents the repository's issue-first workflow, branch targeting rules, local uv setup, required test and lint commands, documentation expectations, and AI/LLM contribution policy.
If you need to report a security issue, do not open a public issue. Follow SECURITY.md and use the repository's private vulnerability reporting flow.