Skip to content

Releases: ormar-orm/ormar

Add order_by to QuerySet

09 Nov 13:24
944bb83

Choose a tag to compare

Pre-release

Add order_by to QuerySet
Update docs

Provide support for proper type hints - change of model definition (non breaking)

01 Nov 12:25

Choose a tag to compare

  • Changed notation in Model definition -> now use name = ormar.Field() not name: ormar.Field()
  • Note that old notation is still supported but deprecated and will not play nice with static checkers like mypy and pydantic pycharm plugin
  • Type hint docs and test
  • Use mypy for tests also not, only ormar package
  • Fix scale and precision translation with max_digits and decimal_places pydantic Decimal field
  • Update docs - add best practices for dependencies
  • Refactor metaclass and model_fields to play nice with type hints
  • Add mypy and pydantic plugin to docs
  • Expand the docs on ManyToMany relation

Fix server_default field parameter and update docs

28 Oct 15:05
0abed59

Choose a tag to compare

See details in #26

Fix postgresql check to avoid exceptions with drivers not installed

28 Oct 13:24
72438ce

Choose a tag to compare

Fix json schema generation

27 Oct 17:30
a8f0ec0

Choose a tag to compare

Pre-release
  • Fix json schema generation as of #19
  • Fix for not initialized ManyToMany relations in fastapi copies of ormar.Models
  • Update docs in regard of fastapi use
  • Add tests to verify fastapi/docs proper generation
  • Modify schema so that ManyToMany fields show list of nested models in fastapi schema

Added name parameter to provide alternative database column names

22 Oct 12:17
501cdd7

Choose a tag to compare

Added possibility to provide alternative database column names with name parameter to all fields.
Fix bug with selecting related ManyToMany fields with fields() if they are empty.
Updated documentation

check the documentation: https://collerek.github.io/ormar/models/#fields-names-vs-column-names

Publish docs

08 Oct 16:31

Choose a tag to compare

Publish docs Pre-release
Pre-release

Publish documentation and update readme

Add fields() QuerySet method, UUID field and UniqueColumns constraint

05 Oct 08:22
dd46dbc

Choose a tag to compare

Add fields() method to limit the selected columns from database - only nullable columns can be excluded.
Added UniqueColumns and constraints list in model Meta to build unique constraints on list of columns.
Added UUID field type based on Char(32) column type.

For details check Readme and tests.

Add bulk operations

28 Sep 12:56
6d56ea5

Choose a tag to compare

Add bulk operations Pre-release
Pre-release

Added bulk_create and bulk_update for operations on multiple objects.
See readme file and tests.

Add queryset level methods

24 Sep 15:26
3658d6a

Choose a tag to compare

Pre-release

Add queryset:

  • delete
  • update
  • get_or_create
  • update_or_create