Commit Graph

46 Commits

Author SHA1 Message Date
734c33920b add support for normal pydantic fields 2021-04-28 19:17:59 +02:00
15e12ef55b allow customization of through model relation names 2021-04-16 16:27:07 +02:00
b3b1c156b5 add skip_reverse parameter, add links to related libs, fix weakref error, fix through error with extra=forbid 2021-04-11 18:43:23 +02:00
32695ffa1d switch from class to instance fro fields 2021-03-19 14:22:31 +01:00
0ae340100e ugly but working - to refactor 2021-03-11 17:53:13 +01:00
082405d8ef use TEXT for all backends 2021-03-09 20:41:17 +01:00
e29bea6f85 revert to use tables and columns with labels and aliases instead of text clauses, add encryption, mostly working encryption column type with configurable backends 2021-03-09 20:29:27 +01:00
f424e65a40 check if data binding not work only in sqlite 2021-03-09 17:00:13 +01:00
eeabb60200 add is null filter, add complex fiters (and_ & or_) and basic tests for them 2021-03-06 13:07:22 +01:00
526eb740b2 Merge branch 'master' into m2m_fields 2021-03-05 18:13:54 +07:00
a99000d2c0 add possibility to exclude/include fields (refactor to excludableitems), fix for through model only on related side of the relation, fix for exclude of through model related models 2021-03-01 19:26:33 +01:00
0c781c4d52 apply fix for new pydantic 2021-02-28 09:20:42 +01:00
62a6fb9063 fix after pydantic update, pin dependencies 2021-02-28 09:16:36 +01:00
e697235172 intorduce relation flags on basefield and simplify imports 2021-02-21 17:46:06 +01:00
ef0a4cbd49 fix json fields and fix choices validation 2021-02-11 11:25:08 +01:00
54a4218f1d check other backends trial1 2021-02-02 09:33:45 +01:00
4209d37364 working m2m and fk self relations with forwardref 2021-01-12 14:38:22 +01:00
8b67c83d0c WIP changes up to join redefinition pending - use fields instead of join_params 2021-01-10 17:27:52 +01:00
4071ff7d11 WIP skip relation registration on m2m through instance, simplify registering relations part 2 2021-01-10 12:06:49 +01:00
055c99ba02 WIP add owner to fields and simplify relation names 2021-01-09 16:13:53 +01:00
8b794d07f9 WIP working self fk, adjusting m2m to work with self ref 2021-01-08 18:19:26 +01:00
2d74b7bd47 allow fields redefining - check column names with names used in constraints 2020-12-18 10:43:24 +01:00
e98300233e refactor methaclass functions into helper files, add docstrings 2020-12-17 15:45:06 +01:00
4de030b5e0 test relation inheritance 2020-12-15 17:14:58 +01:00
6e67b69385 fix for issue 73 2020-12-14 15:36:04 +01:00
5c15564e0b add part of docstrings 2020-12-08 16:40:15 +01:00
381995250d update docs, fix for ellipsis for whole model, some more tests 2020-11-12 11:08:27 +01:00
d8391851fa some further cleanup and optim 2020-11-12 08:56:16 +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
be35c80412 remove unused pydantic_types vars 2020-11-01 08:32:12 +01:00
8fba94efa1 allow change to build in type hints 2020-10-31 15:43:34 +01:00
56c527485d add test exclusion for postgres as it uses transaction timestamp 2020-10-28 15:48:33 +01:00
29d04887b1 fix server_default not setting value in defaults, pop server_default fields if set to None, add tests, update docs 2020-10-28 15:34:40 +01:00
64fd9f3cce initial working solution for aliases/different db column names in basic operations 2020-10-14 18:08:36 +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
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
d0161a81af add callable excecution and test for default value, update readme with exclude, bump version 2020-09-17 18:10:10 +02:00
1a4be03131 add exclude method on QuerySet and fix missing default values on creation 2020-09-17 18:03:29 +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
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
f2ff436fe8 rename newbasemodel 2020-08-23 18:04:33 +02:00
0f72bf36eb refactor and cleanup 2020-08-23 17:50:40 +02:00
53384879a9 some cleanup and tests 2020-08-23 12:54:58 +02:00
0b156caf0a version with pydantic inheritance passing all the tests 2020-08-19 18:40:57 +07:00