forked from CGM_Public/pretix_original
API: Add missing field SubEvent.frontpage_text
This commit is contained in:
@@ -33,6 +33,7 @@ date_to datetime The sub-event's
|
|||||||
date_admission datetime The sub-event's admission date (or ``null``)
|
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_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``)
|
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``)
|
location multi-lingual string The sub-event location (or ``null``)
|
||||||
geo_lat float Latitude of the location (or ``null``)
|
geo_lat float Latitude of the location (or ``null``)
|
||||||
geo_lon float Longitude of the location (or ``null``)
|
geo_lon float Longitude of the location (or ``null``)
|
||||||
|
|||||||
@@ -409,8 +409,8 @@ class SubEventSerializer(I18nAwareModelSerializer):
|
|||||||
model = SubEvent
|
model = SubEvent
|
||||||
fields = ('id', 'name', 'date_from', 'date_to', 'active', 'date_admission',
|
fields = ('id', 'name', 'date_from', 'date_to', 'active', 'date_admission',
|
||||||
'presale_start', 'presale_end', 'location', 'geo_lat', 'geo_lon', 'event', 'is_public',
|
'presale_start', 'presale_end', 'location', 'geo_lat', 'geo_lon', 'event', 'is_public',
|
||||||
'seating_plan', 'item_price_overrides', 'variation_price_overrides', 'meta_data',
|
'frontpage_text', 'seating_plan', 'item_price_overrides', 'variation_price_overrides',
|
||||||
'seat_category_mapping', 'last_modified')
|
'meta_data', 'seat_category_mapping', 'last_modified')
|
||||||
|
|
||||||
def validate(self, data):
|
def validate(self, data):
|
||||||
data = super().validate(data)
|
data = super().validate(data)
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ TEST_SUBEVENT_RES = {
|
|||||||
'date_to': None,
|
'date_to': None,
|
||||||
'date_admission': None,
|
'date_admission': None,
|
||||||
'name': {'en': 'Foobar'},
|
'name': {'en': 'Foobar'},
|
||||||
|
'frontpage_text': None,
|
||||||
'date_from': '2017-12-27T10:00:00Z',
|
'date_from': '2017-12-27T10:00:00Z',
|
||||||
'presale_end': None,
|
'presale_end': None,
|
||||||
'seating_plan': None,
|
'seating_plan': None,
|
||||||
|
|||||||
Reference in New Issue
Block a user