diff --git a/doc/api/resources/subevents.rst b/doc/api/resources/subevents.rst index 544e2af395..768ad07f02 100644 --- a/doc/api/resources/subevents.rst +++ b/doc/api/resources/subevents.rst @@ -136,6 +136,7 @@ Endpoints } :query page: The page number in case of a multi-page result set, default is 1 + :query is_public: If set to ``true``/``false``, only subevents with a matching value of ``is_public`` are returned. :query active: If set to ``true``/``false``, only events with a matching value of ``active`` are returned. :query is_future: If set to ``true`` (``false``), only events that happen currently or in the future are (not) returned. :query is_past: If set to ``true`` (``false``), only events that are over are (not) returned. @@ -467,6 +468,7 @@ Endpoints } :query page: The page number in case of a multi-page result set, default is 1 + :query is_public: If set to ``true``/``false``, only subevents with a matching value of ``is_public`` are returned. :query active: If set to ``true``/``false``, only events with a matching value of ``active`` are returned. :query event__live: If set to ``true``/``false``, only events with a matching value of ``live`` on the parent event are returned. :query is_future: If set to ``true`` (``false``), only events that happen currently or in the future are (not) returned. diff --git a/src/pretix/api/views/event.py b/src/pretix/api/views/event.py index c5ecea18b0..757a1f691f 100644 --- a/src/pretix/api/views/event.py +++ b/src/pretix/api/views/event.py @@ -371,7 +371,7 @@ with scopes_disabled(): class Meta: model = SubEvent - fields = ['active', 'event__live'] + fields = ['is_public', 'active', 'event__live'] def ends_after_qs(self, queryset, name, value): expr = Q(