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
6e2a2ad129
Queryset mixins ( #629 )
...
* add enum field
* add decorator for asyncio
* fix enum typing, additional tests, add docs
* add more tests
* query-mixin
* use dict to replace ordereddict
Co-authored-by: collerek <collerek@gmail.com >
2022-05-07 14:02:30 +02:00
5b876498e1
fix mypy
2022-05-04 14:36:51 +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
aab46de800
remove date dumping to isoformat, add pydantic 1.9 support
2022-01-03 18:23:22 +01:00
851fe0c14f
fix for validators inheritance
2021-10-15 10:39:41 +02:00
9559c0f7f6
inherit choices validators and class validators for fields in generated pydantic models
2021-10-11 16:22:50 +02:00
f6458be157
fix coverage
2021-10-11 12:22:47 +02:00
d8f0dc92f0
refactor choices validation from root validator to field validator
2021-10-10 14:11:25 +02:00
b637fc0774
remove .vscode settings, re-dump orjson choices to fix choices, move mypy config into pyproject.toml
2021-10-08 20:14:03 +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
ca87e74b2e
fix some code smells
2021-09-26 14:20:47 +02:00
1da9111dbd
add extra to Model.Meta, update docs and bump version
2021-09-26 14:07:47 +02:00
67487ebf9c
fix for #354 - allow None for nullable field with choices
2021-09-26 12:43:09 +02:00
beb43dd76c
add caching of relation map to increase performance
2021-09-10 12:58:26 +02:00
cd87303b5c
add multi column non unique columns
2021-09-06 16:47:37 +02:00
9bb22d2ea4
add overwriting pydantic types #311
2021-08-27 16:02:20 +02:00
521b9e6c12
fix for obsolete pydantic parameters
2021-08-06 16:03:29 +02:00
b423c1c56d
fixes for #270 and #274
2021-07-21 14:39:23 +02:00
7b92884f39
fix for #226
2021-06-04 15:50:09 +02:00
f52797fb06
more tests for excluding parent fields, finished docs
2021-06-02 10:16:47 +02:00
3b9c8b323b
add exclude_parent_fields param and first test
2021-06-01 18:51:06 +02:00
f93ab413de
add get_pydantic and basic tests
2021-05-23 16:44:24 +02:00
40f1076443
fix for base64 choices #204
2021-05-20 16:12:33 +02:00
68149dc32a
add misin literal in 3.6-3.7
2021-05-18 16:27:06 +02:00
a28ab0a8a2
fixes for #199 and unreported choices bug
2021-05-18 16:16:12 +02:00
4c79ce5a5e
WIP super dirty - change to descriptors and different tries
2021-05-16 20:42:07 +02:00
1f0ceb3f48
change check for pydantic list in outer type
2021-05-02 15:03:02 +02:00
18706d884c
add also basic examples for native pydantic fields including models to not skip them
2021-04-30 18:36:25 +02:00
12c002776b
add examples to openapi schema, some perf improvements
2021-04-30 16:46:41 +02:00
734c33920b
add support for normal pydantic fields
2021-04-28 19:17:59 +02:00
11ed5fd322
add large binary field, tests and docs
2021-04-28 17:06:15 +02:00
15e12ef55b
allow customization of through model relation names
2021-04-16 16:27:07 +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
9c091afe35
improve relation_proxy types
2021-03-19 17:13:59 +01:00
929e979d37
improve types -> make queryset generic
2021-03-19 16:52:47 +01:00
32695ffa1d
switch from class to instance fro fields
2021-03-19 14:22:31 +01:00
03e6ac6c02
add release docs, change tests
2021-03-15 13:00:07 +01:00
0ae340100e
ugly but working - to refactor
2021-03-11 17:53:13 +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
f424e65a40
check if data binding not work only in sqlite
2021-03-09 17:00:13 +01:00
79ad69e355
check complex prefixes in groups, refactor limit queries, finish docstrings, refactors and cleanup in long methods
2021-03-07 12:50:40 +01:00
526eb740b2
Merge branch 'master' into m2m_fields
2021-03-05 18:13:54 +07: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
62a6fb9063
fix after pydantic update, pin dependencies
2021-02-28 09:16:36 +01:00
e697235172
intorduce relation flags on basefield and simplify imports
2021-02-21 17:46:06 +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
3c43544e0f
Update models.py
2021-02-02 18:02:25 +07:00