Commit Graph

67 Commits

Author SHA1 Message Date
0ed4ef4833 fix dumping to dict with include and exclude 2020-11-27 18:51:40 +01:00
164ea17c73 fix minor code smells 2020-11-26 12:31:56 +01:00
78d1241807 add order_by support for prefetch_related 2020-11-26 11:17:33 +01:00
8a75379b44 update documentation, optimize for memory saving, update docs for select_related, fields and exclude_fields, bump version 2020-11-26 09:15:13 +01:00
ba360974de some refactors and cleanup 2020-11-26 07:26:16 +01:00
f8dbb76965 add aliases to test prefetch_related 2020-11-26 06:33:24 +01:00
2fd2bd9e3f further optimization 2020-11-25 21:14:37 +01:00
d6f995d349 refactor and cleanup for further optimization 2020-11-25 20:52:01 +01:00
e0223f8a22 cleanup by related field 2020-11-25 16:56:54 +01:00
f2fe41d38a cleaner version but still dirty 2020-11-25 13:28:51 +01:00
585bba3ad3 dirty many to many pass first test 2020-11-23 17:03:31 +01:00
b696156f56 dirty prefetch_related working for FK and reverse FK 2020-11-23 16:05:05 +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
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
1242e5d600 allow passing a dict and set to fields and exclude_fields, store it as dict 2020-11-11 19:00:03 +01:00
5663ad6cc2 move back instance creation before query in create to catch errors early 2020-11-11 10:24:36 +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
9f4bde595f working for simple models, not including related models yet 2020-11-08 09:44:30 +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
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
36300f9056 refactor translating of aliases from queryset to modelproxy 2020-10-26 14:50:04 +01:00
394de2d11c fix bug in bulk_update, update documentation, update readme, bump version 2020-10-22 12:48:40 +02: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
304fe6aafc add uuid field and tests 2020-09-30 11:17:03 +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
b694c6a387 change expr to sting in bulk_update, update readme, bump version 2020-09-28 14:30:21 +02:00
a5abf2a403 add bulk_create and bulk_update and tests 2020-09-25 13:26:10 +02:00
df3bb9587d remove unnec else 2020-09-24 17:20:44 +02:00
a13c13550d add get/update or create queryset method and tests 2020-09-24 17:17:10 +02:00
29bcbae35d update readme, bump version 2020-09-24 16:32:34 +02:00
da05063e8d query level delete and update 2020-09-24 13:56:13 +02:00
3bd8f5cb40 added startswith, istartswith and same for endswith, add test for those 2020-09-23 11:52:47 +02:00
f3e227748f fix overwritten pk for non id pks 2020-09-17 19:05:46 +02:00
1a4be03131 add exclude method on QuerySet and fix missing default values on creation 2020-09-17 18:03:29 +02:00
0c4f6a0745 some refactors 2020-09-17 16:18:33 +02:00
a7d1b65712 extracted join 2020-09-17 15:49:39 +02:00
12487e1089 some refactors 2020-09-17 15:21:11 +02:00
63a9aa1d5d linting etc. 2020-09-17 13:14:36 +02:00
1451ec8671 add tests for mysql and postgress, some fixes for those backends 2020-09-17 13:02:34 +02:00
a5d9916575 refactor queries into separate files 2020-09-16 11:51:44 +02:00