Commit Graph

1376 Commits

Author SHA1 Message Date
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
a9f88e8f8f rename alias manager 2020-08-26 14:33:46 +02:00
63a24e7d36 remove auto related parsing, switch to relations on instance instead of relationship manager 2020-08-24 11:18:41 +02:00
9bbf6f93ed rename relationshipmanager 2020-08-23 18:32:21 +02:00
fd688d23bd change order of imports 2020-08-23 18:18:38 +02:00
f2ff436fe8 rename newbasemodel 2020-08-23 18:04:33 +02:00
081337fe72 bump version 2020-08-23 17:58:59 +02:00
0f72bf36eb refactor and cleanup 2020-08-23 17:50:40 +02:00
f73a97e560 Merge pull request #2 from collerek/pydantic_basemodel
Pydantic basemodel
2020-08-23 21:20:22 +07:00
348a3d90dc refactor fields into classes 2020-08-23 16:14:04 +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
08e251efdb clean conflicts and some cleaning 2020-08-19 19:23:04 +07:00
0b156caf0a version with pydantic inheritance passing all the tests 2020-08-19 18:40:57 +07:00
a39179bc64 mostly working 2020-08-16 22:27:39 +02:00
b69ad226e6 update config 2020-08-15 12:51:01 +02:00
a0ad85811b fix nested dicts, add more real life fastapi tests 2020-08-15 12:37:48 +02:00
3232c99fca bump version 2020-08-14 19:40:09 +02:00
b3cc2ba86b renames in readme 2020-08-14 19:39:47 +02:00
062d35168f renames etc. 2020-08-14 19:36:50 +02:00
0ebecc8610 finish initial queries docs 2020-08-14 15:24:44 +02:00
c6b4f69c4d fix bug with infinite relation auto extraction, finish initial relations docs 2020-08-14 14:35:57 +02:00
002f27f21e fix bug with infinite relation auto extraction, finish initial relations docs 2020-08-14 14:35:42 +02:00
6b0cfdbfd3 work on relations docs 2020-08-13 17:10:13 +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
24eb0b30e7 introduce docs -> models section mostly finished 2020-08-12 16:24:45 +02:00
dd20fd9f01 refactors in metaclass 2020-08-12 10:33:37 +02:00
4aadc9fac6 clean code 2020-08-11 19:54:54 +02:00
45653d36c7 refactori into packages 2020-08-11 19:43:42 +02:00
146dbea015 refactor decorator to separate file 2020-08-11 19:03:02 +02:00
24b5649c56 refactor expanding of relationship into constructors 2020-08-11 18:56:40 +02:00
3e04646fd4 refactors in fk 2020-08-11 18:32:48 +02:00
d82340bcb1 refactors in foreign key 2020-08-11 18:11:34 +02:00
4e91b3837b some cleanup 2020-08-11 17:58:34 +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
704e83fed0 refactor required field in model fields into decorator 2020-08-11 17:18:05 +02:00
8e19a5b127 add clean script 2020-08-11 15:44:05 +02:00
ace348e172 refactored reverse relation registration into the metaclass 2020-08-11 15:27:10 +02:00
becb914e55 refactor query and queryclause into separate classes 2020-08-09 13:27:53 +02:00
836836c136 refactor merging of instances from queryset to fakepydantic 2020-08-09 12:53:28 +02:00
3f2568b27e refactors in fields 2020-08-09 12:04:44 +02:00
d9755234c1 readme formatting 2020-08-09 11:08:28 +02:00
fb5d03d64c fix some complexity issues 2020-08-09 10:58:36 +02:00
22c4a0619c fix some code smells 2020-08-09 08:59:36 +02:00
fa00f7b011 fix coverage 2020-08-09 07:53:06 +02:00
241628b1d9 liniting and applying black 2020-08-09 07:51:06 +02:00
9d9346fb13 some style corrections 2020-08-09 06:51:12 +02:00
39e44b1985 add dialect to compilation of sqlalchemy clauses 2020-08-09 06:24:22 +02:00
8f179f763f add preloading of not nullable relations (and all chain inbetween) 2020-08-07 19:34:17 +02:00