Commit Graph

87 Commits

Author SHA1 Message Date
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
4071ff7d11 WIP skip relation registration on m2m through instance, simplify registering relations part 2 2021-01-10 12:06:49 +01:00
8b794d07f9 WIP working self fk, adjusting m2m to work with self ref 2021-01-08 18:19:26 +01:00
9f8e8e87e8 next part of the docs and api documentation in beta ver 2021-01-04 19:38:21 +01:00
e4b4d9451d fill part of queryset docstrings 2021-01-03 17:54:09 +01:00
a32a3b9d59 finish docstrings in relations package 2021-01-03 16:46:46 +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
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
514e8c4ad5 progress in removing resolving_relation_name as it's wrong for multiple related columns leading to same model 2020-12-21 12:03:59 +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
1b42d321b9 first passing to clean and check 2020-12-15 11:55:07 +01:00
89a55d36b8 cleanup, update docs, bump version 2020-12-14 19:05:54 +01:00
6e67b69385 fix for issue 73 2020-12-14 15:36:04 +01:00
3ac767ed0f bump version, update docs 2020-12-01 10:41:07 +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
0f36944fe1 add safe fails for adding and removing not saved models to many to many rel, add tests for save_related 2020-11-14 14:47:33 +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
9175f6004c refactor many2many typehints into protocols 2020-11-01 08:29:06 +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
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
1451ec8671 add tests for mysql and postgress, some fixes for those backends 2020-09-17 13:02:34 +02:00
54aaa97de2 more refactors in relations' 2020-09-15 14:01:36 +02:00
b47d5209eb some refactors in relations module 2020-09-15 13:53:54 +02:00
6124830642 fix imports and styles after refactor 2020-09-15 12:53:14 +02:00
ca21e5dde5 further split of relations classes 2020-09-15 12:49:07 +02:00
12ec8492ef refacotr queryset proxy into separate file 2020-09-15 12:42:58 +02:00
4674f625df working basic many to many relationships 2020-09-14 17:13:27 +02:00