Saffier

Latest version: v1.4.2

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

Scan your dependencies

Page 6 of 8

0.8.0

Changed

- Updated [relationships](https://saffier.tarsild.io/relationships.md) document with more examples regarding
multiple foreign key declarations.

Added

- `contains` method to queryset allowing to query if a given model or reflected model exists in the
queryset.
- `related_name` is now supported on `ForeignKey` allowing transverse queries.
- Allow reverse queries using nested fields.
- `on_update` for ForeignKey and OneToOne fields
- Multiple ForeignKeys to the same table is now possible.
- [Related Name](https://saffier.tarsild.io/queries/related-name.md) document added
- Nested queries using related_name

0.7.4

Fixed

- Removed `nested_asyncio` causing infinite loops.

0.7.3

Added

- `postgresql` Typo in requirement installation.

0.7.2

Added

- `db_schema` - Added Registry objects of the metadata.

0.7.1

Fixed

- `Lifespan` event on shell returning async manager.

0.7.0

Changed

- Renamed `saffier-admin` to `saffier`.
- Deprecate `saffier-admin`. Now you can simply call `saffier` with the same commands
as before.

Added

- New `shell` command that allows interactive shell with saffier models.
- New `SAFFIER_SETTINGS_MODULE` allowing to create and pass specific and unique settings
to any saffier instance.
- Added support for `ipython` and `ptpython` for shell access via `saffier`.

Fixed

- Linting and formatting issues with Ruff.
- Bug with ReflectModel. A ReflectModel might not need all the fields from the database and the mapping should reflect that.
- `run_until_complete` issues fixed with `nest_asyncio`.

Page 6 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.