From 19fb5e7600f08aff15804d2d733b17ac8829782b Mon Sep 17 00:00:00 2001 From: Phin Wolkwitz Date: Tue, 14 Apr 2026 14:50:33 +0200 Subject: [PATCH] Fix migration, update API documentation --- doc/api/resources/item_program_times.rst | 19 +++++++++++++------ ...on.py => 0299_itemprogramtime_location.py} | 2 +- 2 files changed, 14 insertions(+), 7 deletions(-) rename src/pretix/base/migrations/{0297_itemprogramtime_location.py => 0299_itemprogramtime_location.py} (87%) diff --git a/doc/api/resources/item_program_times.rst b/doc/api/resources/item_program_times.rst index db8a6d3368..19a1885183 100644 --- a/doc/api/resources/item_program_times.rst +++ b/doc/api/resources/item_program_times.rst @@ -16,6 +16,7 @@ Field Type Description id integer Internal ID of the program time start datetime The start date time for this program time slot. end datetime The end date time for this program time slot. +location multi-lingual string The program time slot's location (or ``null``) ===================================== ========================== ======================================================= .. versionchanged:: TODO @@ -54,17 +55,20 @@ Endpoints { "id": 2, "start": "2025-08-14T22:00:00Z", - "end": "2025-08-15T00:00:00Z" + "end": "2025-08-15T00:00:00Z", + "location": null }, { "id": 3, "start": "2025-08-12T22:00:00Z", - "end": "2025-08-13T22:00:00Z" + "end": "2025-08-13T22:00:00Z", + "location": null }, { "id": 14, "start": "2025-08-15T22:00:00Z", - "end": "2025-08-17T22:00:00Z" + "end": "2025-08-17T22:00:00Z", + "location": null } ] } @@ -99,7 +103,8 @@ Endpoints { "id": 1, "start": "2025-08-15T22:00:00Z", - "end": "2025-10-27T23:00:00Z" + "end": "2025-10-27T23:00:00Z", + "location": null } :param organizer: The ``slug`` field of the organizer to fetch @@ -125,7 +130,8 @@ Endpoints { "start": "2025-08-15T10:00:00Z", - "end": "2025-08-15T22:00:00Z" + "end": "2025-08-15T22:00:00Z", + "location": null } **Example response**: @@ -139,7 +145,8 @@ Endpoints { "id": 17, "start": "2025-08-15T10:00:00Z", - "end": "2025-08-15T22:00:00Z" + "end": "2025-08-15T22:00:00Z", + "location": null } :param organizer: The ``slug`` field of the organizer of the event/item to create a program time for diff --git a/src/pretix/base/migrations/0297_itemprogramtime_location.py b/src/pretix/base/migrations/0299_itemprogramtime_location.py similarity index 87% rename from src/pretix/base/migrations/0297_itemprogramtime_location.py rename to src/pretix/base/migrations/0299_itemprogramtime_location.py index d6eb1f2864..882d97a786 100644 --- a/src/pretix/base/migrations/0297_itemprogramtime_location.py +++ b/src/pretix/base/migrations/0299_itemprogramtime_location.py @@ -7,7 +7,7 @@ import i18nfield.fields class Migration(migrations.Migration): dependencies = [ - ("pretixbase", "0296_invoice_invoice_from_state"), + ("pretixbase", "0298_pluggable_permissions"), ] operations = [