Django-nap

Latest version: v0.30.10

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

Scan your dependencies

Page 1 of 12

0.30.10

====================

Enhancements:

- JsonMixin will use request.content_type and request.content_params in Django
1.10+, instead of parsing them itself.
- NapView now decorates the as_view response with except_response, instead of
overriding dispatch.
- Simplified code that builds ModelMapper
- RPCView now uses NapView to handle exception responses.
- Micro-optimsations for ``nap.extras.simplecsv.Writer``

Bug Fixes:

- A ``TypeError`` or ``ValueError`` raised in ``nap.mapper.Field.set`` will now
be caught and raised as a ``ValidationError``.

-------
History
-------

0.30.9

====================

Enhancements:

- Add `MapperMixin.include_meta` as an override to including meta in responses.
- Moved `StreamingJSONResponse` into `nap.http.response`
- Moved `except_response` into `nap.http.decorators`

0.30.8

====================

Enhancements:

- `MapperMixin.get_meta(page)` was added to allow customising of meta-data in
response.

Deprecations:

- `MapperMixin` no longer provides default values of None for `mapper`,
`object` and `object_list`.

0.30.7

====================

.. admonition:: The prototype for `context_field` has been changed.

See documentation for details.

Enhancements:

- Allow `ModelMapper` to inherit its `Meta` from a parent.
- Add ``nap.http.StreamingJSONResponse``.
- Add tools to help support generators in JSON encoding
- Changed `context_field` to pass the Mapper._context as the last argument to
the getter and setter methods.

0.30.6

====================

Enhancements:

- Added custom __set__ method for `ToManyField` so it can call `set` on the
manager.

Bug Fixes:

- Don't replace inherited fields with auto-added model fields.
- Return a list of PKs if no Mapper provided to ToManyField

0.30.5

====================

Enhancements:

- Added pagination support to `MapperMixin.multiple_response`
- Import all fields into mapper namespace
- Allow passing \**kwargs to all CBV `valid_FOO` methods.

Bug Fixes:

- Call `all()` on `Manager` instances in `ToManyfield`

Deprecations:

- Removed `newrelic` module, as it was only to support Publishers.

Page 1 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.