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