Commit Graph

30 Commits

Author SHA1 Message Date
eea2ba0bef Correct spelling mistakes (#1163)
Co-authored-by: collerek <collerek@gmail.com>
2023-08-15 11:56:19 +02:00
b6e057c303 CheckColumns Constraint (#730)
* feat: add check columns class

* feat: write document of check columns part

* test: write a test for check columns constraints

* fix: debuging test exception raise mysql

* fix: set pragma no cover to ignore cov

* fix: ignore pytest raise in python 3.x not 10

* feat: set constraint name for check columns

* refactor: support index and check overwrites

* fix: debuging check constraint arguments

* fix: debug coverage all code tests

* fix: pass the map of type constraint to counter

* refactor: edit check name replace sapce underline

* refactor: write new function copy constraints

* test: write test for invalid constraint type

* fix: debug text cluase replaced names

* fix: set pragma no cover for result returned

* refactor: no coverage for main if statement

* perf: change get constraint copy func code

* fix: fix bug in mypy typing check
2022-07-14 10:05:30 +02:00
0e167dc89f use existing encode_json to avoid code duplication, rename queryset customization param and move it to Meta, move docs to models from inheritance 2022-01-26 17:59:00 +01:00
33b492216d fix ident 2022-01-25 17:52:20 +08:00
6297846819 orjson test and doc 2022-01-21 10:03:00 +08:00
10e2d01a91 update docs, bump version, update releases 2021-10-12 18:52:40 +02:00
1da9111dbd add extra to Model.Meta, update docs and bump version 2021-09-26 14:07:47 +02:00
41a846bc1f Fix typo 2021-09-19 21:46:29 +02:00
cd87303b5c add multi column non unique columns 2021-09-06 16:47:37 +02:00
88d881cf3a Correct typo 2021-08-09 20:13:38 +02:00
3528d6effa add docs, provide check if Config is a class, ignore dynamic bases for mypy 2021-07-25 12:11:50 +02:00
b1b3d5cd92 first ugly version of values and values_list - to refactor and check with m2m 2021-06-04 18:21:16 +02:00
f52797fb06 more tests for excluding parent fields, finished docs 2021-06-02 10:16:47 +02:00
64e4288358 expand docs on get_pydantic 2021-05-31 19:04:01 +02:00
5cbac6583e wip work on expanding fastapi docs 2021-05-30 15:58:18 +02:00
bd2a67af84 update docs, add params to json too 2021-05-11 17:39:43 +02:00
1c24ade8c8 fix __all__ error in exclude, update docs 2021-04-16 14:14:24 +02:00
f615b7d55e add _columns to Model.update() 2021-04-06 11:00:11 +02:00
593d233a46 fix too long fk names 2021-04-04 17:27:34 +02:00
67904980ce add docs 2021-03-15 18:45:46 +01:00
a8ae50276e update docs, add load_all(), tests for load_all, make through field optional 2021-03-03 19:48:40 +01:00
95385425fe update the dosc with split of queries, fix tests 2021-01-29 11:17:43 +01:00
2f8645b1a2 work on docs in queries 2021-01-28 17:48:32 +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
3279ef7a85 finish inheritance docs, remove original through model from metadta, add high level overview in api docs 2021-01-05 15:18:13 +01:00
27c377ec5c add cloning through model and working inheritance with many to many fields - for further tests 2020-12-29 16:40:46 +01:00
63f7b0d572 update docs 2020-12-22 13:10:48 +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
4cca8fe63f divide docs in sections, provide Meta attributes inheritance, add tests for fastapi use wih mixins and concrete 2020-12-11 15:51:29 +01:00
2e7cad722b reorganize docs into sections for easier navigation part 1 2020-12-10 18:10:08 +01:00