Commit Graph

361 Commits

Author SHA1 Message Date
7dd892edb5 add cleanup in tests 2020-12-06 19:59:43 +01:00
a24f1b923b update readme 2020-12-06 19:50:35 +01:00
9f86e1d46e bump version, more tests, update docs 2020-12-06 19:45:09 +01:00
420826f472 fix coverage 2020-12-06 17:34:27 +01:00
85be9e8b80 add signals, register six signals on each models (pre/post + save/update/delete) 2020-12-06 17:23:46 +01:00
2bbfd05017 add base signal class 2020-12-06 10:28:48 +01:00
9838547c4f some cleanup and refactoring 2020-12-06 08:23:57 +01:00
1d4a074c2c Merge pull request #64 from collerek/pydantic_only
Intorduce property_field decorator and fix for pydantic_only plus optimization
2020-12-04 21:23:50 +07:00
ad44653acd remove trailing line in docs 2020-12-04 15:19:18 +01:00
f071d4538e bump version, update docs 2020-12-04 15:10:00 +01:00
00ab8a6d1d switch to decorator used to register property_fields and save it on Meta inner class to expose to cloned fastapi models 2020-12-04 09:51:00 +01:00
3b164c76de revert adding props to fields 2020-12-03 16:39:14 +01:00
b838fa1edf some cleanup and optimization 2020-12-03 09:15:19 +01:00
4e10ff03e2 more optimizations 2020-12-02 20:39:30 +01:00
3e615a8057 work in progres pydantic_only and properties 2020-12-02 19:15:55 +01:00
40254b90ff Merge pull request #62 from collerek/exclude_default
fix for issue-60
2020-12-02 19:58:53 +07:00
380bb291f9 fix for issue-60 2020-12-02 13:53:05 +01:00
cbd793caeb Merge pull request #61 from collerek/fk_queryset
Expose QuerysetProxy on reverse ForeignKey, add more QuerySet methods to QuerysetProxy
2020-12-01 16:51:57 +07:00
3ac767ed0f bump version, update docs 2020-12-01 10:41:07 +01:00
4c4e6248b0 fix for sample data in tests 2020-12-01 08:34:26 +01:00
61da7b4418 expose querysetproxy on reverse of foreignkey (virtual fk), add additional methods from queryset to querysetproxy 2020-12-01 08:27:08 +01:00
b939a02ce0 bump version, update docs 2020-11-30 08:07:57 +01:00
610fcf4944 fix uuid column type in alembic autogeneration 2020-11-30 07:50:47 +01:00
98380a157d Merge pull request #58 from collerek/check_uuid
fix uuid column to char(36)
2020-11-28 17:31:52 +07:00
bf86d07c73 allow uuid_format add more tests and update docs 2020-11-28 11:28:46 +01:00
2350111768 allow uuid_format add more tests and update docs 2020-11-28 11:28:15 +01:00
740bb29ea5 fixed binding uuid column to str with dashes 2020-11-28 10:59:53 +01:00
203c57fb2f fix uuid column to char(36) 2020-11-28 10:48:49 +01:00
0f102d3473 Merge pull request #56 from collerek/fix_dict_dumping
Fix dict dumping of models with exclude/include set
2020-11-28 01:11:01 +07:00
bdc2650578 fix small code smells 2020-11-27 19:03:28 +01:00
7b97510f88 bump version and update changelog 2020-11-27 18:53:17 +01:00
0ed4ef4833 fix dumping to dict with include and exclude 2020-11-27 18:51:40 +01:00
9631f6d1d5 Merge pull request #54 from collerek/prefetch_related
Add prefetch related QuerySet method
2020-11-26 18:35:14 +07:00
164ea17c73 fix minor code smells 2020-11-26 12:31:56 +01:00
72b0336b75 update docs with tip on order_by 2020-11-26 12:22:12 +01:00
78d1241807 add order_by support for prefetch_related 2020-11-26 11:17:33 +01:00
bdea9b51ed Merge branch 'master' of https://github.com/collerek/ormar into prefetch_related 2020-11-26 09:18:30 +01:00
8a75379b44 update documentation, optimize for memory saving, update docs for select_related, fields and exclude_fields, bump version 2020-11-26 09:15:13 +01:00
ba360974de some refactors and cleanup 2020-11-26 07:26:16 +01:00
f8dbb76965 add aliases to test prefetch_related 2020-11-26 06:33:24 +01:00
6893aa5095 Merge branch 'master' of https://github.com/collerek/ormar into prefetch_related 2020-11-25 21:22:01 +01:00
3438928608 change tests to run on all branches except docs 2020-11-25 21:18:27 +01:00
2fd2bd9e3f further optimization 2020-11-25 21:14:37 +01:00
d6f995d349 refactor and cleanup for further optimization 2020-11-25 20:52:01 +01:00
e0223f8a22 cleanup by related field 2020-11-25 16:56:54 +01:00
f2fe41d38a cleaner version but still dirty 2020-11-25 13:28:51 +01:00
92f33ca408 include sample alembic configuration in the docs 2020-11-25 10:51:13 +01:00
263a251d69 Merge branch 'master' of https://github.com/collerek/ormar 2020-11-25 10:44:32 +01:00
c6146193b6 Merge pull request #52 from EspenAlbert/master
support updating models on the many side of the one-to-many relations.
2020-11-25 16:42:30 +07:00
1dc05a0fe3 apply suggestion on adding model_dict.pop(field, None)` since the model might be missing the field and that would cause an error. 2020-11-25 08:49:04 +00:00