* Uses `user.pk` instead of `user.id` in user principal check, for compatibility with non-`id` primary keys. * Fixes to documentation. Thanks oguzhancelikarslan!
0.6.0
* Only call database-hitting get_user_group_values if needed in private method. Thanks KillianMeersman! * Use prefetch_related_objects to ensure that user's groups aren't fetched more than once. Thanks filwaline!
0.5.1
- Updates to tox config - Doc typo fixes
0.5.0
- Adds option to define re-usable custom conditions/permissions in a module that can be referenced by multiple policies.
0.4.2
- Allow passing arguments to condition methods, via condition values formatted as `{method_name}:{arg_value}` - Fixes README display issues on pypy
0.3.0
Adds special value "<safe_methods>" for action that will match if the current request is an HTTP read-only method.