Skip to content

Commit

Permalink
Merge branch 'master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
gi0baro committed Jan 18, 2022
2 parents fa5f50e + 47e4224 commit a2c5201
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class Post(Model):

default_values = {
'user': lambda: session.auth.user.id,
'date': lambda: now
'date': now
}
validation = {
'title': {'presence': True},
Expand All @@ -135,7 +135,7 @@ class Comment(Model):

default_values = {
'user': lambda: session.auth.user.id,
'date': lambda: now
'date': now
}
validation = {
'text': {'presence': True}
Expand Down
2 changes: 1 addition & 1 deletion emmett/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.4.0"
__version__ = "2.4.1"
2 changes: 1 addition & 1 deletion emmett/orm/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def __parse_many_relation(self, item, singularize=True):
if isinstance(rv.model, dict):
if 'method' in rv.model:
if 'field' in rv.model:
rv.fields = [rv.model.field]
rv.fields = [rv.model['field']]
else:
if len(self.primary_keys) > 1:
rv.fields = [
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "Emmett"
version = "2.4.0"
version = "2.4.1"
description = "The web framework for inventors"
authors = ["Giovanni Barillari <[email protected]>"]
license = "BSD-3-Clause"
Expand Down

0 comments on commit a2c5201

Please sign in to comment.