Skip to content

Version 0.15.0

Compare
Choose a tag to compare
@devkral devkral released this 14 Sep 09:35
· 74 commits to main since this release
58539a3

Added

  • FileField and File handling.
  • ImageField stub (more is comming soon)
  • stage method in relations.
  • ModelRefs passed as normal positional arguments are automatically staged.
  • ContentType was added.
  • Proper callback support was added.
  • remove_referenced parameter for ForeignKeys was added.
  • Virtual CASCADE deletion is now used for ForeignKeys without constraint.

Changed

  • Breaking: ModelReferences use now the related name instead of the model name.
  • Breaking: Field Factories pass now keyword arguments as positional dictionary. This way keyword arguments manipulations in validate are possible.
    This way it can be distinguished between multiple foreign keys to the same model and self-references are possible.
  • model_references are superseeded by post_save_fields in meta.
  • ModelParser mixin is gone. Use the classmethod extract_column_values instead.
  • edgy_settr is not used internally anymore (circular imports).
  • modify_input receives now an argument phase.
  • foreign_key_fields is now a frozenset.
  • Switch away from nest_asyncio.
  • All sqlalchemy operators are now accessable. The setting for them is gone.

Fixed

  • Factory overwrites can now access owner.
  • Foreign keys to reflected models.
  • Handling to string references not in registry loaded yet.
  • Timezone aware Datetime saved in timezone unaware database columns.