Releases: ormar-orm/ormar
Add order_by to QuerySet
Add order_by to QuerySet
Update docs
Provide support for proper type hints - change of model definition (non breaking)
- 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
See details in #26
Fix postgresql check to avoid exceptions with drivers not installed
Fix issue #23
Fix json schema generation
- 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
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
Publish documentation and update readme
Add fields() QuerySet method, UUID field and UniqueColumns constraint
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
Added bulk_create and bulk_update for operations on multiple objects.
See readme file and tests.
Add queryset level methods
Add queryset:
- delete
- update
- get_or_create
- update_or_create