Commit Graph

46 Commits

Author SHA1 Message Date
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
c096e6dbbd add some docstrings in the model, fix quickstart 2020-12-16 16:15:33 +01:00
3cb3afb042 fix excluding default values in nested model fields in prefetch_related 2020-12-15 15:59:26 +01:00
6e67b69385 fix for issue 73 2020-12-14 15:36:04 +01:00
f4aedbfb2b fix issue 70 2020-12-10 16:22:01 +01:00
594542a7f8 fix issue #68 2020-12-07 12:58:37 +01:00
85be9e8b80 add signals, register six signals on each models (pre/post + save/update/delete) 2020-12-06 17:23:46 +01:00
380bb291f9 fix for issue-60 2020-12-02 13:53:05 +01:00
3ac767ed0f bump version, update docs 2020-12-01 10:41:07 +01:00
2385f95a9f fix saving string pk and add db refresh for server_defaults in save() also, bump version 2020-11-20 11:03:57 +01:00
1168159a70 bump ver, some cleanup 2020-11-16 13:10:03 +01:00
d478ea6e15 add follow=True for save_related, update docs 2020-11-15 10:33:03 +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
cd33f6a96b introduce save_related method that traverses the related objects and upserts them if they are not saved 2020-11-14 14:29:54 +01:00
e805ff16b2 introduce upsert method on model, add tests to see if save status properly changing on nested models 2020-11-14 13:53:32 +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
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
ca38f7853e working order by, refactor models merging, refactors ordering into dict 2020-11-09 12:45:32 +01:00
3c10892db7 liniting, black, mypy fixes 2020-10-31 18:22:15 +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
d18e79a83e change postgres check to dialect name 2020-10-28 13:57:39 +01:00
36300f9056 refactor translating of aliases from queryset to modelproxy 2020-10-26 14:50:04 +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
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
1a4be03131 add exclude method on QuerySet and fix missing default values on creation 2020-09-17 18:03:29 +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
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
a9f88e8f8f rename alias manager 2020-08-26 14:33:46 +02:00
63a24e7d36 remove auto related parsing, switch to relations on instance instead of relationship manager 2020-08-24 11:18:41 +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