Skip to content

Commit

Permalink
chore: add store field to "To Store" views and update Order model names
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Dec 23, 2023
1 parent 9c33e4d commit 93efd50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

*
* Added the `store` field to the "To Store" views

### Fixed

Expand Down
6 changes: 4 additions & 2 deletions src/budy/models/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,8 @@ def to_store_v(cls, *args, **kwargs):
model = cls,
kwargs = kwargs,
entities = appier.lazy(lambda: cls.find(*args, **kwargs)),
page = appier.lazy(lambda: cls.paginate(*args, **kwargs))
page = appier.lazy(lambda: cls.paginate(*args, **kwargs)),
names = ["reference", "store", "total", "currency", "email", "created", "status"]
)

@classmethod
Expand All @@ -465,7 +466,8 @@ def to_store_paid_v(cls, *args, **kwargs):
model = cls,
kwargs = kwargs,
entities = appier.lazy(lambda: cls.find(*args, **kwargs)),
page = appier.lazy(lambda: cls.paginate(*args, **kwargs))
page = appier.lazy(lambda: cls.paginate(*args, **kwargs)),
names = ["reference", "store", "total", "currency", "email", "created", "status"]
)

@classmethod
Expand Down

0 comments on commit 93efd50

Please sign in to comment.