refactor choices validation from root validator to field validator

This commit is contained in:
collerek
2021-10-10 14:11:25 +02:00
parent d992f3dc3b
commit d8f0dc92f0
11 changed files with 168 additions and 124 deletions

View File

@ -61,6 +61,7 @@ from ormar.fields import (
LargeBinary,
ManyToMany,
ManyToManyField,
SQL_ENCODERS_MAP,
SmallInteger,
String,
Text,
@ -132,6 +133,7 @@ __all__ = [
"or_",
"EncryptBackends",
"ENCODERS_MAP",
"SQL_ENCODERS_MAP",
"DECODERS_MAP",
"LargeBinary",
"Extra",