From 58c3627be740e150d685ec4bcbd750e22e945471 Mon Sep 17 00:00:00 2001 From: collerek Date: Mon, 31 Aug 2020 11:18:50 +0200 Subject: [PATCH] bump version --- README.md | 7 ++++++- ormar/__init__.py | 2 +- ormar/fields/model_fields.py | 4 ++-- ormar/queryset/queryset.py | 2 -- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 81cc11c..7ed8dfe 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 f192b41..37ebe34 100644 --- a/ormar/__init__.py +++ b/ormar/__init__.py @@ -15,7 +15,7 @@ from ormar.fields import ( ) 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 8ff1dd7..616b37f 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 1b0db6d..886c29c 100644 --- a/ormar/queryset/queryset.py +++ b/ormar/queryset/queryset.py @@ -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)