diff --git a/doc/api/resources/subevents.rst b/doc/api/resources/subevents.rst index e308e267ca..9a5d24ab4b 100644 --- a/doc/api/resources/subevents.rst +++ b/doc/api/resources/subevents.rst @@ -33,6 +33,7 @@ date_to datetime The sub-event's date_admission datetime The sub-event's admission date (or ``null``) presale_start datetime The sub-date at which the ticket shop opens (or ``null``) presale_end datetime The sub-date at which the ticket shop closes (or ``null``) +frontpage_text multi-lingual string The description of the event (or ``null``) location multi-lingual string The sub-event location (or ``null``) geo_lat float Latitude of the location (or ``null``) geo_lon float Longitude of the location (or ``null``) diff --git a/src/pretix/api/serializers/event.py b/src/pretix/api/serializers/event.py index 036fb76dce..b3575d584b 100644 --- a/src/pretix/api/serializers/event.py +++ b/src/pretix/api/serializers/event.py @@ -409,8 +409,8 @@ class SubEventSerializer(I18nAwareModelSerializer): model = SubEvent fields = ('id', 'name', 'date_from', 'date_to', 'active', 'date_admission', 'presale_start', 'presale_end', 'location', 'geo_lat', 'geo_lon', 'event', 'is_public', - 'seating_plan', 'item_price_overrides', 'variation_price_overrides', 'meta_data', - 'seat_category_mapping', 'last_modified') + 'frontpage_text', 'seating_plan', 'item_price_overrides', 'variation_price_overrides', + 'meta_data', 'seat_category_mapping', 'last_modified') def validate(self, data): data = super().validate(data) diff --git a/src/tests/api/test_subevents.py b/src/tests/api/test_subevents.py index f7692af915..1c0043fd82 100644 --- a/src/tests/api/test_subevents.py +++ b/src/tests/api/test_subevents.py @@ -72,6 +72,7 @@ TEST_SUBEVENT_RES = { 'date_to': None, 'date_admission': None, 'name': {'en': 'Foobar'}, + 'frontpage_text': None, 'date_from': '2017-12-27T10:00:00Z', 'presale_end': None, 'seating_plan': None,