Declarative access policies/permissions modeled after AWS' IAM policies.
Statement
dataclass as alternative to dictionaries. Drops Python 3.5 support.PermittedSlugRelatedField
to re-use scope_queryset
methods on policies. Thanks @bradydean!PermittedPkRelatedField
to re-use scope_queryset
methods on policies.ViewSet
.:warning: Breaking Change :warning:
condition
element no longer supports the evaluation of multiple methods joined with boolean logic. These statements must be updated to use the new condition_expression
element, which does support complex boolean logic. See migration notes.reusable_conditions
in settings as a list. Thanks @HonakerM!