add extra to Model.Meta, update docs and bump version

This commit is contained in:
collerek
2021-09-26 14:07:47 +02:00
parent 67487ebf9c
commit 1da9111dbd
10 changed files with 158 additions and 4 deletions

6
ormar/models/utils.py Normal file
View File

@ -0,0 +1,6 @@
from enum import Enum
class Extra(str, Enum):
ignore = "ignore"
forbid = "forbid"