Web check-in: Show addons of ticket (Z#23220213) (#5827)

* Web check-in: Show addons of ticket (Z#23220213)

* Update src/pretix/plugins/webcheckin/static/pretixplugins/webcheckin/components/app.vue

Co-authored-by: luelista <weller@rami.io>

---------

Co-authored-by: luelista <weller@rami.io>
This commit is contained in:
Raphael Michel
2026-01-26 08:37:54 +01:00
committed by GitHub
parent a0dae48cec
commit 0af011eed4
5 changed files with 75 additions and 25 deletions

View File

@@ -737,6 +737,19 @@ def test_question_expand(token_client, organizer, clist, event, order, question)
assert resp.data["position"]["answers"][0]["question"]["question"]["en"] == "Size"
@pytest.mark.django_db
def test_addons_expand(token_client, organizer, clist, event, order, question, other_item):
with scopes_disabled():
p = order.positions.first()
question[0].save()
p.answers.create(question=question[0], answer="3")
resp = _redeem(token_client, organizer, clist, p.secret, {"answers": {question[0].pk: ""}}, query="?expand=addons&expand=item")
assert resp.status_code == 201
assert resp.data["status"] == "ok"
assert resp.data["position"]["addons"][0]["item"]["id"] == other_item.pk
@pytest.mark.django_db
def test_store_failed(token_client, organizer, clist, event, order):
with scopes_disabled():