Django-grainy

Latest version: v2.0.0

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

Scan your dependencies

Page 2 of 3

1.6.1

Fixed
- Fixed issue with namespace formatting for grainy views that was introduced in 1.6.0 where trying to format using url parameters would raise a KeyError

1.6.0

Added
- grainy view decorators can now access the request object when formatting namespaces
- you can now use extra keyword arguments passed to `Grainy.namespace` and `helpers.namespace` to further format the namespace string
Changed
- grainy view decorators: renamed `explicit_object` to `explicit_instance`

1.5.0

Added
- `util.Permissions.get` now accepts the `explicit` keyword argument
- `decorators.grainy_view` now accepts the `explicit_object` keyword argument
Fixed
- `util.Permissions.get` now works correctly
Changed
- `decorators.grainy_view` request GET parameters now available for namespace formatting
- `decorators.grainy_view` get_object() now available as `instance` for base namespace formatting if it exists
- `decorators.grainy_decorator` decorator namespaces can now be passed as lists in which case the resulting namespace is a joint namespace of all the elements

1.4.0

Added
- implemented `decorators.grainy_view_response`
- implemented `decorators.grainy_json_view_response`
- implemented `decorators.grainy_rest_viewset_response`
Changed
- `decorators.grainy_view` now simply decorates all response handlers
- `decorators.grainy_json_view` now simply decorates all response handlers
- `decorators.grainy_rest_viewset` now simply decorates all response handlers

1.3.0

Added
- grainy_model: allow specifying of custom instance namespace formatting
- grainy_view: impl explicit namespace handling during request gating

1.2.1

Fixed
- Template files not being installed

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.