bump version
This commit is contained in:
@ -15,7 +15,7 @@ from ormar.fields import (
|
||||
)
|
||||
from ormar.models import Model
|
||||
|
||||
__version__ = "0.2.1"
|
||||
__version__ = "0.2.2"
|
||||
__all__ = [
|
||||
"Integer",
|
||||
"BigInteger",
|
||||
|
||||
@ -57,7 +57,7 @@ class String(ModelFieldFactory):
|
||||
_bases = (pydantic.ConstrainedStr, BaseField)
|
||||
_type = str
|
||||
|
||||
def __new__( # noqa CFQ002
|
||||
def __new__( # noqa CFQ002
|
||||
cls,
|
||||
*,
|
||||
allow_blank: bool = False,
|
||||
@ -231,7 +231,7 @@ class Decimal(ModelFieldFactory):
|
||||
_bases = (pydantic.ConstrainedDecimal, BaseField)
|
||||
_type = decimal.Decimal
|
||||
|
||||
def __new__( # noqa CFQ002
|
||||
def __new__( # noqa CFQ002
|
||||
cls,
|
||||
*,
|
||||
minimum: float = None,
|
||||
|
||||
@ -167,8 +167,6 @@ class QuerySet:
|
||||
del new_kwargs[pkname]
|
||||
|
||||
new_kwargs = self.model_cls.substitute_models_with_pks(new_kwargs)
|
||||
|
||||
# Build the insert expression.
|
||||
expr = self.table.insert()
|
||||
expr = expr.values(**new_kwargs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user