Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
collerek committed Aug 31, 2020
1 parent ff2e5f0 commit 58c3627
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
</p>

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.
Expand Down
2 changes: 1 addition & 1 deletion ormar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
)
from ormar.models import Model

__version__ = "0.2.1"
__version__ = "0.2.2"
__all__ = [
"Integer",
"BigInteger",
Expand Down
4 changes: 2 additions & 2 deletions ormar/fields/model_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions ormar/queryset/queryset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 58c3627

Please sign in to comment.