API: Add details of seats (#4282)

This commit is contained in:
Raphael Michel
2024-07-03 09:48:59 +02:00
committed by GitHub
parent a173e347ea
commit 6ae6eba4de
3 changed files with 11 additions and 1 deletions

View File

@@ -40,6 +40,11 @@ answers list of objects Answers to user
seat objects The assigned seat (or ``null``) seat objects The assigned seat (or ``null``)
├ id integer Internal ID of the seat instance ├ id integer Internal ID of the seat instance
├ name string Human-readable seat name ├ name string Human-readable seat name
├ zone_name string Name of the zone the seat is in
├ row_name string Name/number of the row the seat is in
├ row_label string Additional label of the row (or ``null``)
├ seat_number string Number of the seat within the row
├ seat_label string Additional label of the seat (or ``null``)
└ seat_guid string Identifier of the seat within the seating plan └ seat_guid string Identifier of the seat within the seating plan
===================================== ========================== ======================================================= ===================================== ========================== =======================================================

View File

@@ -215,6 +215,11 @@ answers list of objects Answers to user
seat objects The assigned seat. Can be ``null``. seat objects The assigned seat. Can be ``null``.
├ id integer Internal ID of the seat instance ├ id integer Internal ID of the seat instance
├ name string Human-readable seat name ├ name string Human-readable seat name
├ zone_name string Name of the zone the seat is in
├ row_name string Name/number of the row the seat is in
├ row_label string Additional label of the row (or ``null``)
├ seat_number string Number of the seat within the row
├ seat_label string Additional label of the seat (or ``null``)
└ seat_guid string Identifier of the seat within the seating plan └ seat_guid string Identifier of the seat within the seating plan
pdf_data object Data object required for ticket PDF generation. By default, pdf_data object Data object required for ticket PDF generation. By default,
this field is missing. It will be added only if you add the this field is missing. It will be added only if you add the

View File

@@ -165,7 +165,7 @@ class InlineSeatSerializer(I18nAwareModelSerializer):
class Meta: class Meta:
model = Seat model = Seat
fields = ('id', 'name', 'seat_guid') fields = ('id', 'name', 'seat_guid', 'zone_name', 'row_name', 'row_label', 'seat_label', 'seat_number')
class AnswerSerializer(I18nAwareModelSerializer): class AnswerSerializer(I18nAwareModelSerializer):