Commit Graph

87 Commits

Author SHA1 Message Date
90f78e2fa7 Draft 0.11.0 (#594)
* fix for #584

* fix for #580

* fix typing

* connect to db in test

* refactor test

* remove async mark

* connect client

* fix mypy

* fix mypy

* update deps

* check py3.10?

* remove py3.6, bump version
2022-03-28 18:47:35 +02:00
8376b6635e Merge pull request #557 from MojixCoder/master
Update get_or_create method
2022-03-28 13:04:55 +02:00
606a592038 Fix collerk/ormar#588 bug in querysetproxy count() method 2022-03-17 14:08:53 -04:00
4431a643d5 Update get_or_create method and its tests 2022-02-06 19:14:17 +03:30
2517572a14 Reformat project 2022-02-01 10:33:29 +03:30
fc32001fe7 Update get_or_create method 2022-02-01 09:44:07 +03:30
646a901af5 clean unused code 2022-01-06 19:35:13 +01:00
c8586e5b8e rc for skip of literal binds 2022-01-06 18:22:07 +01:00
3f264d974b wip - remove literal binds 2022-01-05 18:19:14 +01:00
bb2e0d1ddf remove reference to mypy.ini in github workflow, fix some code smells 2021-10-08 20:30:27 +02:00
b2541bed1e Added poetry integration.
Description:
* Fixed github actions;
* Removed requirements.txt;
* Fixed CONTRIBUTING.md;
* Fixed black and flake8.

Signed-off-by: Pavel <win10@list.ru>
2021-10-08 16:56:59 +04:00
89c05ecf54 add querysetproxy methods and tests 2021-06-08 14:54:16 +02:00
fa061e06eb wip - some cleanup 2021-06-05 18:56:25 +02:00
955ac48cdd wip - refactor of alias resolver - through models columns with fields are not properly handled yet 2021-06-05 18:53:15 +02:00
c8ca6edb22 fix for not saving related model in reverse rel 2021-06-02 13:05:10 +02:00
bd2a67af84 update docs, add params to json too 2021-05-11 17:39:43 +02:00
638af9ad4c fix #173 and https://github.com/uriyyo/fastapi-pagination/issues/73 2021-04-23 15:45:35 +02:00
5e38426694 finish release notes, add more test 2021-04-20 11:52:41 +02:00
7a27778b44 add and/or/not to filtergroups, add left and right shift to operators, add some tests, add *args to other functions that read data and use filter 2021-04-19 19:49:42 +02:00
854b27947a modify save_related to be able to save whole tree from dict - including reverse fk and m2m relations - with correct order of saving 2021-04-12 17:39:42 +02:00
6780c9de8a fix private attributes initialization 2021-04-12 10:40:29 +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
749975d665 fix merging non relation list fields 2021-03-31 17:07:42 +02:00
91c7725293 fix qsp relation name instead of db alias 2021-03-26 09:36:38 +01:00
4ad843a6a5 fix quoting in order_by, add get_or_none 2021-03-23 17:36:20 +01:00
74beaa31b7 add select_all 2021-03-21 15:22:40 +01:00
859ed5d1fc some types improvements 2021-03-19 18:40:46 +01:00
9c091afe35 improve relation_proxy types 2021-03-19 17:13:59 +01:00
32695ffa1d switch from class to instance fro fields 2021-03-19 14:22:31 +01:00
5c633d32a8 fix tests 2021-03-15 10:37:55 +01:00
6d0a5477cd wip pc problems backup 2021-03-14 19:09:34 +01:00
ff9d412508 add 4 new relation signales, add 4 new aggr methods, wip to cleanup 2021-03-12 12:13:08 +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
0ea9b0952c add default exceptions to relations, test one argument, test querysetproxy, test deeply nested 2021-03-09 10:13:51 +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
4e27f07a7e som types fixes, fix for wrong prefixes in model_row for complex relations, test load_all with repeating tables, add docs 2021-03-04 13:12:07 +01:00
a8ae50276e update docs, add load_all(), tests for load_all, make through field optional 2021-03-03 19:48:40 +01:00
9ad1528cc0 add docstrings, clean types test 2021-03-02 19:10:59 +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
ad9d065c6d start to refactor fields and eclude_fields into ExcludableItems to simplify access 2021-02-26 17:47:52 +01:00
7bf781098f add update to queryset, add update_through_instance, start to update docs 2021-02-26 11:28:44 +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
5d40fb6bff WIP - further work and refactoring 2021-02-17 13:51:38 +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
ef0a4cbd49 fix json fields and fix choices validation 2021-02-11 11:25:08 +01:00
4788394565 add pagination method, add tests, update api docs, bump version, add release info 2021-01-29 14:24:53 +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