Skip to content

Commit

Permalink
Fix admin's list of orders
Browse files Browse the repository at this point in the history
  • Loading branch information
homeworkprod committed Feb 3, 2020
1 parent 181859f commit 4379e53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion byceps/blueprints/admin/shop/order/service.py
Expand Up @@ -7,6 +7,7 @@
"""

from dataclasses import dataclass
import dataclasses
from typing import Dict, Iterator, Sequence

from .....services.shop.article.models.article import Article
Expand Down Expand Up @@ -41,7 +42,7 @@ def extend_order_tuples_with_orderer(

for order in orders:
orderer = orderers_by_id[order.placed_by_id]
values = attr.astuple(order, recurse=False) + (orderer,)
values = dataclasses.astuple(order) + (orderer,)
yield OrderWithOrderer(*values)


Expand Down

0 comments on commit 4379e53

Please sign in to comment.