From 93efd5065d5e071b78ff42fed759cc17a41b8979 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= Date: Sat, 23 Dec 2023 17:14:13 +0000 Subject: [PATCH] chore: add store field to "To Store" views and update Order model names --- CHANGELOG.md | 2 +- src/budy/models/order.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b160c47..7e6145b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/budy/models/order.py b/src/budy/models/order.py index 1bdb760..eec0b61 100644 --- a/src/budy/models/order.py +++ b/src/budy/models/order.py @@ -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 @@ -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