Django-guardian

Latest version: v2.4.0

Safety actively analyzes 706267 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

3.0.0rc1

What's Changed
* Add database index to object_pk field in BaseGenericObjectPermission by dblenkus in https://github.com/django-guardian/django-guardian/pull/614
* Fix broken Django doc link by johnthagen in https://github.com/django-guardian/django-guardian/pull/616
* Fix number of default Django permissions by johnthagen in https://github.com/django-guardian/django-guardian/pull/617
* Add PyPI badges by johnthagen in https://github.com/django-guardian/django-guardian/pull/619
* Fix grammar typo by johnthagen in https://github.com/django-guardian/django-guardian/pull/620
* Link to latest stable docs by johnthagen in https://github.com/django-guardian/django-guardian/pull/622
* Update example to be PEP8 compliant by johnthagen in https://github.com/django-guardian/django-guardian/pull/623
* Add missing parenthesis by johnthagen in https://github.com/django-guardian/django-guardian/pull/624
* Document how to enable django-grappelli integration in example project by johnthagen in https://github.com/django-guardian/django-guardian/pull/627
* Fix broken link by johnthagen in https://github.com/django-guardian/django-guardian/pull/626
* Link to latest stable docs by johnthagen in https://github.com/django-guardian/django-guardian/pull/625
* Use the correct DB in post_migration handler by AdamZ in https://github.com/django-guardian/django-guardian/pull/631
* Overly optimistic content type queries by qeternity in https://github.com/django-guardian/django-guardian/pull/633
* Auto prefetching for vanilla usecases by qeternity in https://github.com/django-guardian/django-guardian/pull/632
* Better cache eviction and testing by qeternity in https://github.com/django-guardian/django-guardian/pull/635
* Upgrade to use django.urls.path in routing by ad-m in https://github.com/django-guardian/django-guardian/pull/634
* Add migiration check by ad-m in https://github.com/django-guardian/django-guardian/pull/613
* Fixed import of FieldDoesNotExist exception. by felixxm in https://github.com/django-guardian/django-guardian/pull/645
* Replace deprecated admin_static with static by OskarPersson in https://github.com/django-guardian/django-guardian/pull/649
* Fix typos in mixins.py by Maxr1998 in https://github.com/django-guardian/django-guardian/pull/652
* Add support for Python 3.8 by michael-k in https://github.com/django-guardian/django-guardian/pull/656
* Upgrade syntax to Python 3 by ad-m in https://github.com/django-guardian/django-guardian/pull/655
* Don't initialise anonymous user on DB where it's not migrated by browniebroke in https://github.com/django-guardian/django-guardian/pull/651
* Feature: Custom generic object permission models by partimer in https://github.com/django-guardian/django-guardian/pull/657
* Remove setup_requires from setup.py by johnthagen in https://github.com/django-guardian/django-guardian/pull/638
* Allow object permissions with dots. by jonnyarnold in https://github.com/django-guardian/django-guardian/pull/641
* Add requirements (specifically, Django >= 2.1) to setup.py by kdmccormick in https://github.com/django-guardian/django-guardian/pull/646
* Add BaseObjectPermission and BaseGenericObjectPermission to models/__init__ import by partimer in https://github.com/django-guardian/django-guardian/pull/659
* staticfiles is depreceted since 2.1 by l0rb in https://github.com/django-guardian/django-guardian/pull/661
* Remove url from __all__ by davitovmasyan in https://github.com/django-guardian/django-guardian/pull/662
* Add support for Django 3.0 by michael-k in https://github.com/django-guardian/django-guardian/pull/667
* Remove use of deprecated function. by dmptrluke in https://github.com/django-guardian/django-guardian/pull/668
* Fix circular dependency by deferring get obj perms model call by partimer in https://github.com/django-guardian/django-guardian/pull/664
* Improve performance of get_objects_for_user, removing sets by woakas in https://github.com/django-guardian/django-guardian/pull/637
* Fix cache reuse and add tests that invoke backend by qeternity in https://github.com/django-guardian/django-guardian/pull/636
* Update get_users_with_perms() to avoid a large join by aaronmader in https://github.com/django-guardian/django-guardian/pull/548
* Update Django in example_project by ad-m in https://github.com/django-guardian/django-guardian/pull/672
* Fix simple typo: relase -> release by timgates42 in https://github.com/django-guardian/django-guardian/pull/674

2.4.0

**[Historic change log for all releases prior to v3 is available here](https://github.com/django-guardian/django-guardian/blob/v2.4.0/CHANGES)**

In this release

* Add support for Python 3.9
* Add support for Django 3.1, Django 3.2
* Add parameter `any_perm` to `PermissionRequiredMixin`
* Switch from Travis CI to `GitHub Actions`

What's Changed
* Run tests against Django 3.1 by michael-k in https://github.com/django-guardian/django-guardian/pull/708
* Use chain.from_iterable in core.py by cool-RR in https://github.com/django-guardian/django-guardian/pull/706
* Run tests against Python 3.9 by michael-k in https://github.com/django-guardian/django-guardian/pull/712
* Let shortcut 'remove_perm' work with global permission objects by michael-k in https://github.com/django-guardian/django-guardian/pull/713
* add any_perm parameter for PermissionRequiredMixin by 1vank1n in https://github.com/django-guardian/django-guardian/pull/697
* Fix function reference in docs: userguide remove section by pedrorojasg in https://github.com/django-guardian/django-guardian/pull/715
* Fixed headers test for Django 3.2 by smithdc1 in https://github.com/django-guardian/django-guardian/pull/719
* Added djangomaster to tox by smithdc1 in https://github.com/django-guardian/django-guardian/pull/722
* Fixed default_app_config deprecation by smithdc1 in https://github.com/django-guardian/django-guardian/pull/721
* test: drop python3.6 and python3.7 for django master by Rainshaw in https://github.com/django-guardian/django-guardian/pull/733
* Switch to GitHub Actions; also run tests against Django 3.2 and main (instead of master) by michael-k in https://github.com/django-guardian/django-guardian/pull/736
* Mention GitHub Actions instead of Travis CI everywhere by michael-k in https://github.com/django-guardian/django-guardian/pull/737
* fix autofield in django3.2 by Rainshaw in https://github.com/django-guardian/django-guardian/pull/740

New Contributors
* cool-RR made their first contribution in https://github.com/django-guardian/django-guardian/pull/706
* 1vank1n made their first contribution in https://github.com/django-guardian/django-guardian/pull/697
* pedrorojasg made their first contribution in https://github.com/django-guardian/django-guardian/pull/715
* smithdc1 made their first contribution in https://github.com/django-guardian/django-guardian/pull/719
* Rainshaw made their first contribution in https://github.com/django-guardian/django-guardian/pull/733

**Full Changelog**: https://github.com/django-guardian/django-guardian/compare/v2.3.0...v2.4.0

2.3.0

**[Historic change log for all releases prior to v3 is available here](https://github.com/django-guardian/django-guardian/blob/v2.4.0/CHANGES)**

In this release

- Drop support for Django 2.1
- Fix compatibility with UUIDField primary keys
- Fix formatting for pyupgrade
- Fix error with get_objects_for_user on PostgreSQL
- Modify 'assign_perm' shortcut to treat lists as a queryset
- Updated links to Django documentation and django-authority repository
- Removed reference to "easy_install" in the documentation
- Run migrations check only if required version of django is installed

What's Changed
* Fix error with get_objects_for_user on PostgreSQL. by jonnyarnold in https://github.com/django-guardian/django-guardian/pull/677
* Fix broken Django docs link by johnthagen in https://github.com/django-guardian/django-guardian/pull/687
* removed "easy_install" by guettli in https://github.com/django-guardian/django-guardian/pull/689
* Modify 'assign_perm' shortcut to treat lists as a queryset by DavisRayM in https://github.com/django-guardian/django-guardian/pull/686
* Update link to current django-authority repository by pnuckowski in https://github.com/django-guardian/django-guardian/pull/692
* Cast object_pk to UUIDField when PK is a UUID by michael-k in https://github.com/django-guardian/django-guardian/pull/691
* Run migrations check only if required version of django is installed by michael-k in https://github.com/django-guardian/django-guardian/pull/690
* Drop support for Django 2.1 by michael-k in https://github.com/django-guardian/django-guardian/pull/693
* Fix unittest mock imports that triggered the linter by lnagel in https://github.com/django-guardian/django-guardian/pull/700
* Update CHANGES for v2.3.0 by lnagel in https://github.com/django-guardian/django-guardian/pull/695

New Contributors
* guettli made their first contribution in https://github.com/django-guardian/django-guardian/pull/689
* DavisRayM made their first contribution in https://github.com/django-guardian/django-guardian/pull/686
* pnuckowski made their first contribution in https://github.com/django-guardian/django-guardian/pull/692
* lnagel made their first contribution in https://github.com/django-guardian/django-guardian/pull/700

**Full Changelog**: https://github.com/django-guardian/django-guardian/compare/v2.2.0...v2.3.0

2.2.0

New Contributors
* felixxm made their first contribution in https://github.com/django-guardian/django-guardian/pull/645
* OskarPersson made their first contribution in https://github.com/django-guardian/django-guardian/pull/649
* Maxr1998 made their first contribution in https://github.com/django-guardian/django-guardian/pull/652
* browniebroke made their first contribution in https://github.com/django-guardian/django-guardian/pull/651
* partimer made their first contribution in https://github.com/django-guardian/django-guardian/pull/657
* kdmccormick made their first contribution in https://github.com/django-guardian/django-guardian/pull/646
* l0rb made their first contribution in https://github.com/django-guardian/django-guardian/pull/661
* davitovmasyan made their first contribution in https://github.com/django-guardian/django-guardian/pull/662
* dmptrluke made their first contribution in https://github.com/django-guardian/django-guardian/pull/668
* woakas made their first contribution in https://github.com/django-guardian/django-guardian/pull/637

**Full Changelog**: https://github.com/django-guardian/django-guardian/compare/v2.1.0...v2.2.0

2.1.0

**[Historic change log for all releases prior to v3 is available here](https://github.com/django-guardian/django-guardian/blob/v2.4.0/CHANGES)**

In this release

- Upgrade to use `django.urls.path` in routing
- Add admin support for user primary key as UUID
- Auto pre-fetching permission via `GUARDIAN_AUTO_PREFETCH`
- Add tests for missing migrations

What's Changed
* Add database index to object_pk field in BaseGenericObjectPermission by dblenkus in https://github.com/django-guardian/django-guardian/pull/614
* Fix broken Django doc link by johnthagen in https://github.com/django-guardian/django-guardian/pull/616
* Fix number of default Django permissions by johnthagen in https://github.com/django-guardian/django-guardian/pull/617
* Add PyPI badges by johnthagen in https://github.com/django-guardian/django-guardian/pull/619
* Fix grammar typo by johnthagen in https://github.com/django-guardian/django-guardian/pull/620
* Link to latest stable docs by johnthagen in https://github.com/django-guardian/django-guardian/pull/622
* Update example to be PEP8 compliant by johnthagen in https://github.com/django-guardian/django-guardian/pull/623
* Add missing parenthesis by johnthagen in https://github.com/django-guardian/django-guardian/pull/624
* Document how to enable django-grappelli integration in example project by johnthagen in https://github.com/django-guardian/django-guardian/pull/627
* Fix broken link by johnthagen in https://github.com/django-guardian/django-guardian/pull/626
* Link to latest stable docs by johnthagen in https://github.com/django-guardian/django-guardian/pull/625
* Use the correct DB in post_migration handler by AdamZ in https://github.com/django-guardian/django-guardian/pull/631
* Overly optimistic content type queries by qeternity in https://github.com/django-guardian/django-guardian/pull/633
* Auto prefetching for vanilla usecases by qeternity in https://github.com/django-guardian/django-guardian/pull/632
* Better cache eviction and testing by qeternity in https://github.com/django-guardian/django-guardian/pull/635
* Upgrade to use django.urls.path in routing by ad-m in https://github.com/django-guardian/django-guardian/pull/634
* Add migiration check by ad-m in https://github.com/django-guardian/django-guardian/pull/613

New Contributors
* AdamZ made their first contribution in https://github.com/django-guardian/django-guardian/pull/631

**Full Changelog**: https://github.com/django-guardian/django-guardian/compare/v2.0.0...v2.1.0

2.0.0

**[Historic change log for all releases prior to v3 is available here](https://github.com/django-guardian/django-guardian/blob/v2.4.0/CHANGES)**

What's Changed
* Drop support for Python 2.7 & 3.4 and Django 1.11 & 2.0 by michael-k in https://github.com/django-guardian/django-guardian/pull/604
* Fix RemovedInDjango21Warning in authenticate signature by nikolaik in https://github.com/django-guardian/django-guardian/pull/612

New Contributors
* nikolaik made their first contribution in https://github.com/django-guardian/django-guardian/pull/612

**Full Changelog**: https://github.com/django-guardian/django-guardian/compare/v1.5.1...v2.0.0

Links

Releases

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.