Commit Graph

31 Commits

Author SHA1 Message Date
c8aad2385c change limit/offset with select related to be applied on a subquery and limit only main model query 2020-12-21 18:42:17 +01:00
0ed4ef4833 fix dumping to dict with include and exclude 2020-11-27 18:51:40 +01:00
6893aa5095 Merge branch 'master' of https://github.com/collerek/ormar into prefetch_related 2020-11-25 21:22:01 +01:00
6f9b32b575 refactor to a more sensible test.
reduce cyclomatic complexity of if clause
2020-11-24 18:52:51 +00:00
cf3ec2e2a5 Refactor tests to cover all lines. 2020-11-24 09:09:54 +00:00
a668b20f1a Add test for an Album with tracks. 2020-11-24 08:56:57 +00:00
3eccd05ece support updating models on the many side of the one-to-many relations. 2020-11-24 08:49:29 +00:00
b696156f56 dirty prefetch_related working for FK and reverse FK 2020-11-23 16:05:05 +01:00
358b5c2e52 restore typing in tests and docs, remove unused metaclass code 2020-11-01 10:11:25 +01:00
3c10892db7 liniting, black, mypy fixes 2020-10-31 18:22:15 +01:00
7d5e291a19 switch to equals in most of the code, fix dependencies, clean tests, make all not relation fields work with type hints 2020-10-31 18:11:48 +01:00
f802ae37ce update readme, bump version 2020-10-05 10:08:51 +02:00
287b970a09 add fields method limiting the models columns fetched from db 2020-10-05 09:40:41 +02:00
798475ae5f refactor and move tests 2020-09-23 10:09:15 +02:00
ebd812bf00 fix for minimu and maximum in validators, added validator for choices and choices param for BaseField, include tests 2020-09-22 20:50:24 +02:00
1451ec8671 add tests for mysql and postgress, some fixes for those backends 2020-09-17 13:02:34 +02:00
4674f625df working basic many to many relationships 2020-09-14 17:13:27 +02:00
c5389023b8 add fixes for fastapi model clones, add functionality to add and remove models to relation, add relation proxy, fix all tests, adding values also to pydantic model __dict__some refactors 2020-08-26 22:24:25 +02:00
63a24e7d36 remove auto related parsing, switch to relations on instance instead of relationship manager 2020-08-24 11:18:41 +02:00
806fe9b63e fix setting new related model just from dict with pkname 2020-08-23 13:15:04 +02:00
53384879a9 some cleanup and tests 2020-08-23 12:54:58 +02:00
a39179bc64 mostly working 2020-08-16 22:27:39 +02:00
a0ad85811b fix nested dicts, add more real life fastapi tests 2020-08-15 12:37:48 +02:00
062d35168f renames etc. 2020-08-14 19:36:50 +02:00
8c7051b07e finish fields docs intial ver,add test for related name, fix child_name(s) in reverse relations 2020-08-13 12:54:42 +02:00
7083b50712 simplify adding relations 2020-08-11 17:47:06 +02:00
867fc691f7 refactor fields into a package 2020-08-11 17:34:19 +02:00
3f2568b27e refactors in fields 2020-08-09 12:04:44 +02:00
fb5d03d64c fix some complexity issues 2020-08-09 10:58:36 +02:00
475dafb6c9 rebuild the registry of relationships 2020-08-05 18:32:13 +02:00
345fd227d1 sloppy work on passing all of the test and reimplementing most of the features from encode 2020-08-04 18:44:17 +02:00