forked from CGM_Public/pretix_original
API: Add details of seats (#4282)
This commit is contained in:
@@ -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
|
||||||
===================================== ========================== =======================================================
|
===================================== ========================== =======================================================
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user