Skip to content

Commit

Permalink
Release 0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsil committed Jun 28, 2024
1 parent c8fd5a3 commit 8fc8c33
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
6 changes: 3 additions & 3 deletions docs/embedding.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ There are two ways of embedding models

## Embeddable

Edgy models are capable of beeing used as an embeddable. This means just using a model like a field works
and automagically fields are copied with the prefix of the attribute name used plus an `_`.
Edgy models are capable of being used as an embeddable. This means just using a model like a field works
and *automagically* fields are copied with the prefix of the attribute name used plus an `_`.

Fields with inherit=False are not pulled in to prevent PKField or autoinjected id fields to be pulled in.
Fields with `inherit=False` are not pulled in to prevent PKField or autoinjected id fields to be pulled in.


``` python
Expand Down
16 changes: 9 additions & 7 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ hide:

# Release Notes

## Unreleased
## 0.12.0

### Added

Expand All @@ -25,17 +25,15 @@ hide:
- Allow skip building reverse RelatedFields for ForeignKeys with `related_name=False`.
- `pkcolumns` attribute of models (contains all found primary key columns).
- Some new methods on BaseField:
- embed_field: for controlling embedding a field in an CompositeField.
- get_column_names: helper function for retrieving the column names of a field.
- `embed_field`: for controlling embedding a field in an CompositeField.
- `get_column_names`: helper function for retrieving the column names of a field.
- Add RelationshipField for traversable fields.


### Changed

- Breaking: Prefetch traversal of foreign keys uses now the foreign key name. For the traversal of RelatedFields everything stays the same.
- ForeignKeys use now global constraints and indexes.
- Breaking: clean has now the argument to_query. See [Custom Fields](./fields.md#Custom%20Fields)
- Breaking: ManyToMany doesn't have a RelatedField on owner anymore and uses proxying. See [ManyToMany](./fields.md#ManyToMany)
- Breaking: clean has now the argument to_query. See [Custom Fields](./fields.md#custom-fields).
- Breaking: ManyToMany doesn't have a RelatedField on owner anymore and uses proxying. See [ManyToMany](./fields.md#ManyToMany).
- Breaking: use singular related_name for unique ForeignKeys (or OneToOne). See [related_name](./queries/related-name.md)
- MetaInfo (meta) is now partly lazy.
- `pk` is now a PKField (a variant of the BaseCompositeField).
Expand All @@ -45,6 +43,10 @@ hide:
- Remove superfluous BaseOneToOneKeyField. Merged into BaseForeignKeyField.
- Remove unused attributes of MetaInfo and added some lazy evaluations for fields.

#### Breaking

- Prefetch traversal of foreign keys uses now the foreign key name. For the traversal of RelatedFields everything stays the same.

## 0.11.1

### Added
Expand Down
2 changes: 1 addition & 1 deletion edgy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.11.1"
__version__ = "0.12.0"

from .cli.base import Migrate
from .conf import settings
Expand Down

0 comments on commit 8fc8c33

Please sign in to comment.