Commit Graph

34 Commits

Author SHA1 Message Date
0ae340100e ugly but working - to refactor 2021-03-11 17:53:13 +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
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
fd38ae2a40 wip with m2m fields 2021-02-28 08:19:02 +01:00
503f589fa7 refactor order bys into OrderQuery, add ordering to through models too 2021-02-25 17:28:05 +01:00
c139ca4f61 add possibility to filter on through models fields 2021-02-24 18:14:25 +01:00
e697235172 intorduce relation flags on basefield and simplify imports 2021-02-21 17:46:06 +01:00
3fd231cf3c wip - through models fields -> attached in queries, accesible from instances, creates in add and queryset create 2021-02-15 17:30:14 +01:00
a2834666fc extract filters into filter actions and delay their processing time to allow for registration of complex relations, refactoring and optimization, now one join with relations with same aliases are possible 2021-01-21 15:55:23 +01:00
d6e2c85b79 refactors in join to register complex aliases on duplicate, to do is doing the same in filter clauses 2021-01-17 12:29:21 +01:00
28cc847b57 Refactor join, fix owner on added fks on through model, fix coverage, add .coveragerc settings. 2021-01-16 12:02:11 +01:00
0fe95b0c7b Refactor in join in order to make possibility for nested duplicated relations (and it was a mess :D) 2021-01-15 17:05:23 +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
1df274b6e0 change order by key to table alias as this one should be unique, name of the field dont have to be, fill release 2021-01-06 16:48:16 +01:00
4e0a6cefe9 fix ordering overwrites 2021-01-06 16:00:00 +01:00
a914be67e2 add fastapi tests with inheritance and relations, more docstrings in queryset 2021-01-04 12:43:00 +01:00
e695db712f refactor and cleanup - drop of resolving relation names as not fully proper, extract mixins from modelproxy to be more maintainable, add some docstrings 2020-12-30 16:41:26 +01:00
e98300233e refactor methaclass functions into helper files, add docstrings 2020-12-17 15:45:06 +01:00
daf47f891e fixed in general 2020-12-15 14:11:46 +01:00
6e67b69385 fix for issue 73 2020-12-14 15:36:04 +01:00
381995250d update docs, fix for ellipsis for whole model, some more tests 2020-11-12 11:08:27 +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
eafc6862f4 add exclude_fields queryset method 2020-11-10 16:54:24 +01:00
d716799325 fix overwriting order-bys with same column name 2020-11-09 13:57:09 +01:00
62d3388a97 cleaning and linting 2020-11-09 13:01:02 +01:00
ca38f7853e working order by, refactor models merging, refactors ordering into dict 2020-11-09 12:45:32 +01:00
dbca4367e8 fix qryset fields, model update, model delete, model load, qryset update, qruset filter, qryset bulk_load, qryset bulk_update 2020-10-21 12:14:14 +02: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
3caa87057e added mypy checks and some typehint changes to conform 2020-09-29 14:05:08 +02:00
1a4be03131 add exclude method on QuerySet and fix missing default values on creation 2020-09-17 18:03:29 +02:00
a7d1b65712 extracted join 2020-09-17 15:49:39 +02:00