Django-nap

Latest version: v0.30.10

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

Scan your dependencies

Page 2 of 12

0.30.4

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

Enhancements:

- Added `nap.utils.NapJSONEncoder` to support `__json__` protocol.

Bug Fixes:

- Fixed __new__ on field so subclasses work.
- Reworked context_field to work properly, and match docs.

0.30.3

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

Enhancements:

Bug Fixes:

- Using foo.setter on a field will now retain other keyword arguments.
- RPCClient now sets Content-Type on request.

0.30.2

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

Enhancements:

- Began documenting the `extras` module.

Bug Fixes:

- Fixed ToOneField to reference `self.related_model` not `self.model`

0.30.1

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

Enhancements:

- fields will now raise and error when trying to set a value with no setter.

Bug Fixes:

- Include null in field constructor
- Set null correctly in fields on ModelMapper
- Handle null ForeignKey/OneToOneFields properly

Deprecations:

- Dropped `nap.utils.digattr` and `nap.mapper.fields.DigField`
- Typed fields no longer special case None

0.30.0

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

.. admonition:: Python and Django version support change

Support for Python2 has been dropped.

Support for Django 1.7 is no longer tested.

.. warning:: API Breakage

Another large code reorganisation was undertaken.
`DataMapper` has been renamed to `Mapper`, and large amounts of its cod
have been rewritten.

Filters are no longer supported.

Enhancements:

- Added `readonly` attribute to `Mapper.field`
- Added `readonly` list to `ModelMapper.Meta`
- All `MapperMixin.*_response` methods now accept kwargs, and try to
`setdefault` their default behaviour in it.
- In PUT/POST REST views, the `*_valid` methods now accept kwargs and pass them
to their response class.
- Added RPC Client example code.
- Dropped deprecated test class.

Bug Fixes:

- Corrected `Mapper` to work as documented for ``obj = data << dm``

0.20.3

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

Bug Fixes:

- Handle None values properly in ModelFilter

Page 2 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.