Commit Graph

373 Commits

Author SHA1 Message Date
1b1da6c3b1 add workaround test for validation of fields in generated pydantic 2021-10-08 15:31:33 +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
afa1756b47 very initial verson of construct 2021-10-05 18:50:02 +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
8376fb023a fix for #348 2021-09-26 12:07:08 +02:00
beb43dd76c add caching of relation map to increase performance 2021-09-10 12:58:26 +02:00
8126e95ec1 change text for string to allow default in mysql 2021-09-08 09:30:49 +02:00
95adc7146a add sql_nullable param 2021-09-08 09:22:29 +02:00
cd87303b5c add multi column non unique columns 2021-09-06 16:47:37 +02:00
46500eba39 fix for #327 and #328 2021-09-01 11:50:04 +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
7e242f4fd3 add:SmallInteger() 2021-08-06 15:57:07 +08:00
7baaee63ce add:SmallInteger() 2021-08-06 11:43:51 +08:00
3528d6effa add docs, provide check if Config is a class, ignore dynamic bases for mypy 2021-07-25 12:11:50 +02:00
5dcbe8f0e5 Change comparisons to use 'is' 2021-07-24 11:48:11 -07:00
29761999e7 Allow custom model config 2021-07-24 11:43:48 -07:00
b423c1c56d fixes for #270 and #274 2021-07-21 14:39:23 +02:00
7b1d1ad328 test for missing nested models in generated pydantic models 2021-07-21 13:55:48 +02:00
cb4e5ea955 improve date handling 2021-07-06 15:11:26 +02:00
107404c3e8 fix inherited pk and add field accessor access to relations 2021-06-25 13:32:31 +02:00
557105a591 fix coverage 2021-06-22 13:09:55 +02:00
172a6a2be6 bug fixes 2021-06-22 12:58:39 +02:00
2d0ba2383a fix headers for fastapi 0.65.2+ 2021-06-09 12:01:15 +02:00
89c05ecf54 add querysetproxy methods and tests 2021-06-08 14:54:16 +02:00
d441c36d01 finish implementing values, missing docstrings and docs 2021-06-07 17:42:30 +02:00
13a8655126 exclude through models 2021-06-06 15:58:38 +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
b1b3d5cd92 first ugly version of values and values_list - to refactor and check with m2m 2021-06-04 18:21:16 +02:00
7b92884f39 fix for #226 2021-06-04 15:50:09 +02:00
c8ca6edb22 fix for not saving related model in reverse rel 2021-06-02 13:05:10 +02:00
0254abcd6c fix chars 2021-06-02 10:37:27 +02:00
f52797fb06 more tests for excluding parent fields, finished docs 2021-06-02 10:16:47 +02:00
af394de483 Merge branch 'master' of https://github.com/collerek/ormar into get_pydantic 2021-06-02 08:56:29 +02:00
62c70250a9 Fix for #214 2021-06-02 02:16:23 -04:00
3b9c8b323b add exclude_parent_fields param and first test 2021-06-01 18:51:06 +02:00
7a84577613 remove manual ids from get_pydantic tests 2021-05-31 19:09:29 +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
88a49e67dd check modyfing annotations hack for mypy 2021-05-25 13:33:52 +02:00
b643c884ac add fastapi tests for get_pydantic 2021-05-24 18:04:41 +02:00
981d10d4db add tests for self-reference ormar -> pydantic 2021-05-24 10:29:27 +02:00
b611c891cd fix default check 2021-05-23 16:50:51 +02:00
f93ab413de add get_pydantic and basic tests 2021-05-23 16:44:24 +02:00
a28ab0a8a2 fixes for #199 and unreported choices bug 2021-05-18 16:16:12 +02:00
7d94e13d21 add missing connection in tests 2021-05-18 13:38:02 +02:00
57803ac8e6 fix for default values in pk models 2021-05-18 13:34:02 +02:00
0527c5fb82 refactor into descriptors, cleanup, docs update 2021-05-17 17:21:10 +02:00
4c79ce5a5e WIP super dirty - change to descriptors and different tries 2021-05-16 20:42:07 +02:00