Commit Graph

82 Commits

Author SHA1 Message Date
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
380bb291f9 fix for issue-60 2020-12-02 13:53:05 +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
0ed4ef4833 fix dumping to dict with include and exclude 2020-11-27 18:51:40 +01:00
58a3855697 add saved property to avoid private prop access 2020-11-14 13:57:04 +01:00
1f67da3a5c add save status and tests 2020-11-13 16:21:12 +01:00
b0cf916531 add saving status and basic test for this 2020-11-13 13:39:19 +01:00
d8391851fa some further cleanup and optim 2020-11-12 08:56:16 +01:00
e743286008 some cleanup of unused relations code, introduced caching of related_names and props on model, set profiling 2020-11-12 08:11:40 +01:00
1242e5d600 allow passing a dict and set to fields and exclude_fields, store it as dict 2020-11-11 19:00:03 +01:00
9350b929aa black, add additional tests with combined fields and exclude_fields, add aliases for column names to tests with fields and exclude_fields 2020-11-11 10:10:30 +01:00
0547259050 move include and exclude checks 2020-11-10 11:34:04 +01:00
22d594bcbd include properties as fields in dict and json of models 2020-11-10 11:25:34 +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
8fba94efa1 allow change to build in type hints 2020-10-31 15:43:34 +01:00
d18e79a83e change postgres check to dialect name 2020-10-28 13:57:39 +01:00
82e3eb94ae modify schema to show many to many as list of nested models, check openapi generation in tests 2020-10-27 17:55:41 +01:00
d3091c404f fix many_to_many lazy registration in fastapi cloned models, fixed ForeignKey not treated as subclasses of BaseModels in json schema 2020-10-27 13:49:07 +01:00
64fd9f3cce initial working solution for aliases/different db column names in basic operations 2020-10-14 18:08:36 +02:00
287b970a09 add fields method limiting the models columns fetched from db 2020-10-05 09:40:41 +02:00
d9aa269f7a finish mypy checks add reqs and linting 2020-09-29 17:06:41 +02:00
3caa87057e added mypy checks and some typehint changes to conform 2020-09-29 14:05:08 +02:00
a5abf2a403 add bulk_create and bulk_update and tests 2020-09-25 13:26:10 +02:00
ca21e5dde5 further split of relations classes 2020-09-15 12:49:07 +02:00
5a8fd74fac fix some smells 2020-09-14 17:33:12 +02:00
4674f625df working basic many to many relationships 2020-09-14 17:13:27 +02:00
279d3966b1 liniting and missin type annots 2020-08-27 11:04:49 +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
9bbf6f93ed rename relationshipmanager 2020-08-23 18:32:21 +02:00
f2ff436fe8 rename newbasemodel 2020-08-23 18:04:33 +02:00