Skip to content

amsdal_models

v0.7.1 - 2026-03-17

Fixed

  • Fixed migrations issue with forward reference resolving: added synthetic module registration, deferred PK/FK resolution, and ClassManager integration for compiled migration classes
  • Fixed QuerySet bugs and historical query builders

v0.7.0 - 2026-02-25

Added

  • Added PIIStr field type and get_pii_fields() for PII (Personally Identifiable Information) field detection
  • Added CryptoService protocol and registry (register_crypto_service / get_crypto_service) for field-level encryption
  • Full roundtrip support for PII fields: Model → ObjectSchema → Model preserves PIIStr type annotations, including PIIStr | None (Optional) fields

v0.6.5 - 2026-02-20

Fixed

  • Fix for schemes without foreign_keys specified

v0.6.4 - 2026-02-18

Fixed

  • Fixed select_related for historical query builders to filter by NULL or empty NEXT_VERSION_FIELD, ensuring only the latest version of related objects is returned

v0.6.3 - 2026-02-13

Fixed

  • Fixed pyruff.fix running in isolated mode, ignoring project pyproject.toml config (e.g. force-single-line = true for isort), which caused phantom migrations with merged imports

v0.6.2 - 2026-02-16

Changed

  • Replaced ruff-api with pyruff for code formatting and linting

v0.6.1 - 2026-02-15

Performance

  • Replaced black formatter with ruff-api for code generation (167x faster, eliminates blib2to3 memory leak)
  • Added ClassSourceBuilder._build_class_source cache clearing in ClassManager.teardown()

Fixed

  • Fixed temp file leak in _format_code() — files in /tmp were not cleaned up after ruff check --fix

v0.6.0 - 2026-02-05

Added

  • QuerySet.none()

v0.5.33 - 2026-01-24

Added

  • Added default_manager to model in case of objects override

v0.5.32 - 2026-01-20

Fixed

  • Fix for loading models from different modules

v0.5.31 - 2026-01-16

Fixed

  • Allow to pass None to filter for optional references
  • Added support for storage_metadata attributes in class source generation

v0.5.30 - 2025-12-22

Added

  • Added support for python 3.13

v0.5.29 - 2025-12-21

Change

  • Update pydantic to 2.12

v0.5.28 - 2025-12-18

Fixed

  • Fixed issue with updating FK field

v0.5.27 - 2025-12-16

Added

  • aexecute added to External Connections

v0.5.26 - 2025-12-16

Fixed

  • Fix for external connection

v0.5.25 - 2025-12-11

Fixed

  • Fix for reference filter by string

v0.5.24 - 2025-11-26

Fixed

  • Migration context

v0.5.23 - 2025-11-24

Fixed

  • Fixes for migration

v0.5.22 - 2025-11-14

Fixed

  • Fix for state nested filters

v0.5.21 - 2025-10-30

Fixed

  • Fix for circular import

v0.5.20 - 2025-10-20

Fixed

  • Fix for external postgres connection

v0.5.19 - 2025-10-20

Added

  • External connections support

v0.5.18 - 2025-09-24

Changed

  • Revert "Remove timestamp fields from model_to_object_schema output"

v0.5.17 - 2025-09-24

Changed

  • Remove timestamp fields from model_to_object_schema output

v0.5.16 - 2025-09-19

Fixed

  • Adjusting AsyncFileWrapper

v0.5.15 - 2025-09-15

Fixed

  • Fixes for async migrations

v0.5.14 - 2025-09-11

Fixed

  • Fixes for closed file

v0.5.13 - 2025-09-08

Fixed

  • Fixes for contrib migration

v0.5.12 - 2025-09-05

Fixed

  • Fixed aopen->read for DBStorage

v0.5.11 - 2025-09-04

Fixed

  • Fix aopen for db storage

v0.5.10 - 2025-09-03

Changes

  • File storages

v0.5.9 - 2025-08-15

Changes

  • Changes for plugins to support migration generation

v0.5.8 - 2025-07-31

Fixed

  • Fixed MacOS build

v0.5.7 - 2025-07-29

Fixed

  • Fixed QS.only for lakehouse postgres

v0.5.6 - 2025-07-28

Fixed

  • Fixes for QS.only

v0.5.5 - 2025-07-01

Added

  • Added support for Vector schemas and annotations

v0.5.4 - 2025-06-10

Fixed

  • Fix for postgres and async methods

v0.5.3 - 2025-05-28

Fixed

  • Stubgen fix

v0.5.2 - 2025-05-28

Fixed

  • Fix for Model typing

v0.5.1 - 2025-05-22

Fixed

  • Adjustments and fixes for async mode

v0.5.0 - 2025-05-19

Added

  • StorageMetadata
  • Adjusted migrations to use connection-level transfer data for historical connections
  • Migrations refactoring to decouple logic

v0.4.19 - 2025-05-16

Added

  • Added support for optional References

v0.4.18 - 2025-05-16

Added

  • Support for reference fields

v0.4.17 - 2025-05-16

Added

  • Support for lists of date, datetime and byte objects

v0.4.16 - 2025-05-12

Added

  • Exception for m2m assignment

v0.4.15 - 2025-05-06

Added

  • Handle bytes and date/datetime in TypeModels.

v0.4.14 - 2025-05-06

Added

  • Added support for enum values

v0.4.13 - 2025-05-04

Fixed

  • Fix for TypeModels in lists

v0.4.12 - 2025-04-17

Fixed

  • Fixed load class schemas sorted by dependency order.

v0.4.11 - 2025-04-10

Added

  • Added support for enums in properties

v0.4.10 - 2025-04-07

Changed

  • Suppress ruff error logs for cleaner output

v0.4.9 - 2025-04-04

Fixed

  • Fixed support for pydantic 2.11

v0.4.8 - 2025-04-03

Fixed

  • Fixed getattr for async references

v0.4.7 - 2025-04-03

Added

  • amodel_dump added to model

v0.4.6 - 2025-03-17

Fixed

  • Fixed check unique using lakehouse

v0.4.5 - 2025-03-17

Fixed

  • Fixed check unique using lakehouse

v0.4.4 - 2025-03-11

Fixed

  • Get metadata by class name

v0.4.3 - 2025-03-05

Fixed

  • Add missing migration templates

v0.4.2 - 2025-03-05

Changed

  • Use db_field from PropertyData

v0.4.1 - 2025-02-24

Fixed

  • Fixed stub generations

v0.4.0 - 2025-02-24

Added

  • Support for FKs and M2Ms
  • Python classes

v0.3.9 - 2025-02-06

Added

  • Locking on updates and deletes (locking-in-querysets)

v0.3.8 - 2024-12-13

Changed

  • Model is now awaitable (awaitable-model)
  • Limit usage of managers in different modes (limit-managers-usage)

v0.3.7 - 2024-12-09

Added

  • DependencyModelNames.async_build_from_database method (async-build-from-database)

v0.3.6 - 2024-12-09

Added

  • Add select_related to BaseManager (base-manager-select-related)

Fixed

  • Add object_id when using select_related (object-id-select-related)

v0.3.5 - 2024-12-06

Fixed

  • Added async pre_update hook to File mode (pre-update-file-async-hooks)

v0.3.4 - 2024-12-06

Added

  • Async hooks (async-hooks)

v0.3.3 - 2024-12-04

Added

  • Async support (async-support)

v0.3.2 - 2024-12-02

Fixed

  • Add original_class to LegacyModel (add-original-class-to-legacymodel)

v0.3.1 - 2024-11-28

Fixed

  • Optimized display_name to avoid extra request to lakehouse (optimized-display-name)

v0.3.0 - 2024-11-27

Changed

  • Metadata redesign: moving metadata into historical connection (metadata-redesign)

v0.2.7 - 2024-11-04

Added

  • Nested filtering support (nested-filtering)

v0.2.6 - 2024-10-28

Added

  • Python3.12 support added (python3.12-support)

v0.2.5 - 2024-10-24

Added

  • Added select_related feature (select-related)

Fixed

  • Fix Partial models (partial-models)

v0.2.4 - 2024-10-18

Fixed

  • Fixed ordering of custom code (custom-code-ordering)

v0.2.3 - 2024-10-18

Fixed

  • Handle updates with specific object version (specific-version-update)

v0.2.2 - 2024-10-16

Fixed

  • Fixed prior version (prior-version)

v0.2.1 - 2024-10-15

Fixed

  • Fixed limits setting to 0 by default (fixed-limits)

v0.2.0 - 2024-10-14

Added

  • AMSDAL Glue integration (amsdal-glue)

v0.1.18 - 2024-10-01

Added

  • select_related method added to querysets (select-related)

v0.1.17 - 2024-09-12

Added

  • Added google style docstring (docstring)

v0.1.16 - 2024-07-16

Added

  • Support for ordering in fixtures (support-for-ordering-in-fixtures)

v0.1.15 - 2024-05-28

Fixed

  • Fix for API Schema creation (fix-for-api-schema-creation)

v0.1.14 - 2024-05-23

Added

  • date and datetime field types support (date-datetime-field-types)

v0.1.13 - 2024-05-09

Fixed

  • Fixed imports with aliases in AST builder (fixed-imports-with-aliases-in-ast-builder)

v0.1.12 - 2024-05-06

Added

  • Bulk operations support (bulk-operations-support)

v0.1.11 - 2024-04-24

Changed

  • Left to right union mode during models generation (left-to-right-union-mode-during-models-generation)

v0.1.10 - 2024-04-19

Added

  • Immutable connection support (immutable-connection-support)

v0.1.9 - 2024-04-11

Added

  • {field}_reference dynamic field to avoid reference loading (field-reference-dynamic-field-to-avoid-reference-loading)

Fixed

  • Queryset slicing (queryset-slicing)

v0.1.8 - 2024-04-03

Changed

  • Dissalow save of partial models (dissalow-save-of-partial-models)

v0.1.7 - 2024-04-02

Added

  • Support for partial models (support-for-partial-models)

v0.1.6 - 2024-04-02

Fixed

  • Typo in previous_version and next_version methods (typo-in-previous-version-and-next-version-methods)

v0.1.5 - 2024-04-01

Fixed

  • Fixed previous_version and next_version manager methods (fixed-previous-version-and-next-version-methods)

v0.1.4 - 2024-03-30

Fixed

  • Fix for serialization of recursive models (fix-for-serialization-of-recursive-models)

v0.1.3 - 2024-03-25

Added

  • Check unique fields on save (check-unique-fields-on-save)

v0.1.2 - 2024-03-21

Fixed

  • Fixed mypy build (fixed-mypy-build)

v0.1.1 - 2024-03-21

Changed

  • Change version pins to compatible releases (change-version-pins-to-compatible-releases)

v0.1.0 - 2024-03-20

Changed

  • Upgraded amsdal_utils and amsdal_data dependencies to 0.1.* (upgraded-amsdal-utils-and-amsdal-data-dependencies)