diff --git a/README.md b/README.md index 81cc11ca8..7ed8dfe5b 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,12 @@

The `ormar` package is an async ORM for Python, with support for Postgres, -MySQL, and SQLite. Ormar is built with: +MySQL, and SQLite. + +Ormar - apart form obvious ORM in name - get it's name from ormar in swedish which means snakes, and ormar(e) in italian which means cabinet. +And what's a better name for python ORM than snakes cabinet :) + +Ormar is built with: * [`SQLAlchemy core`][sqlalchemy-core] for query building. * [`databases`][databases] for cross-database async support. diff --git a/ormar/__init__.py b/ormar/__init__.py index f192b4186..37ebe34b0 100644 --- a/ormar/__init__.py +++ b/ormar/__init__.py @@ -15,7 +15,7 @@ ) from ormar.models import Model -__version__ = "0.2.1" +__version__ = "0.2.2" __all__ = [ "Integer", "BigInteger", diff --git a/ormar/fields/model_fields.py b/ormar/fields/model_fields.py index 8ff1dd7c0..616b37f3a 100644 --- a/ormar/fields/model_fields.py +++ b/ormar/fields/model_fields.py @@ -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, diff --git a/ormar/queryset/queryset.py b/ormar/queryset/queryset.py index 1b0db6d9f..886c29c21 100644 --- a/ormar/queryset/queryset.py +++ b/ormar/queryset/queryset.py @@ -167,8 +167,6 @@ async def create(self, **kwargs: Any) -> "Model": 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)