Saffier

Latest version: v1.4.2

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

Scan your dependencies

Page 2 of 8

1.3.4

Changed

- Update internal anyio dependency.

1.3.3

Changed

- Upgrade internal requirements.

Fixed

- `auto_now` and `auto_now_add` on `save()` and `update()` wasn't only updating the
field with `auto_now`.
- Extraction of the default field for `date` and `datetime`.

1.3.2

Fixed

- The way settings default is loaded. [124](https://github.com/tarsil/saffier/pull/124) by [vvanglro](https://github.com/vvanglro)

1.3.1

Fixed

- Fix default for `SETTINGS_MODULE` if nothing is provided.

1.3.0

Added

- Added new experimental [activate_schema](https://saffier.tarsild.io/tenancy/saffier.md#using-with-activate_schema) for tenant models using the `using` queryset operator.
- Support for ManyToMany to accept strings to the `to` attribute.
- Support for new queryset operations [only()](https://saffier.tarsild.io/queries/queries.md#only) and [defer](https://saffier.tarsild.io/queries/queries.md#defer).
- Intenal `ModelProxy` allowing to manipulate objects querysets such as `only` and `defer`.
- Support for [secrets](https://saffier.tarsild.io/queries/secrets.md) and secret queryset.

Changed

- Increased maximum of 63 characters the name of the index/unique.
- ModelRow now contains private methods.
- Updated documentation with missing [select_related](https://saffier.tarsild.io/queries/queries.md#load-the-foreign-keys-beforehand-with-select-related).
- Updated documentation for [access of data via foreign keys](https://saffier.tarsild.io/relationships.md#access-the-foreign-key-values-directly-from-the-model).
- Deprecating internal settings from Pydantic in favour of [Dymmond Settings](https://settings.dymmond.com).

Breaking changes

Saffier now uses [Dymmond Settings](https://settings.dymmond.com) which this simlpy affects the way the
settings module is loaded. Prior to version 1.3.0 it was like this:

python
SAFFIER_SETTINGS_MODULE=...


**From version 1.3.0 is**:

python
SETTINGS_MODULE=...


The rest remains as it. More information about [how to use it in the official documentation](https://settings.dymmond.com/#how-to-use-it_1).

Fixed

- Multiple join tables were not generating the complete join statement when using `select_related`.
- Fixed metaclass for TenantMixin making sure all the queries are correctly pointing
to the right tenant.
- When generating a many to many through model, the maximum length is enforced to be 63 characters.
- Object discovery for intellisense.
- Allow `ManyToMany` to also accept a string as a parameter for the `to`.

1.2.0

Added

- Support for `sync` queries. This will enable Edgy to run in blocking frameworks like
Flask, bottle or any other by using the newly added [run_sync](https://saffier.tarsil.io/queries/queries.md#blocking-queries).

Fixed

- Fixed multi tenancy from contrib.
- Fixed `using` where schema name was raising a not found reference for foreign key
when querying the tenant.

Page 2 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.