From dac22092434da8a30918b7b2caf1c8131cfb2516 Mon Sep 17 00:00:00 2001 From: Mira Weller Date: Thu, 18 Jul 2024 23:10:02 +0200 Subject: [PATCH] rebase migration --- ....py => 0269_itemcategory_cross_selling.py} | 2 +- src/pretix/base/services/cross_selling.py | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) rename src/pretix/base/migrations/{0265_itemcategory_cross_selling.py => 0269_itemcategory_cross_selling.py} (90%) diff --git a/src/pretix/base/migrations/0265_itemcategory_cross_selling.py b/src/pretix/base/migrations/0269_itemcategory_cross_selling.py similarity index 90% rename from src/pretix/base/migrations/0265_itemcategory_cross_selling.py rename to src/pretix/base/migrations/0269_itemcategory_cross_selling.py index 208d91bc73..c183066224 100644 --- a/src/pretix/base/migrations/0265_itemcategory_cross_selling.py +++ b/src/pretix/base/migrations/0269_itemcategory_cross_selling.py @@ -8,7 +8,7 @@ import pretix.base.models.orders class Migration(migrations.Migration): dependencies = [ - ("pretixbase", "0264_order_internal_secret"), + ("pretixbase", "0268_remove_subevent_items_remove_subevent_variations_and_more"), ] operations = [ diff --git a/src/pretix/base/services/cross_selling.py b/src/pretix/base/services/cross_selling.py index 2ed0835bee..d1c1210f29 100644 --- a/src/pretix/base/services/cross_selling.py +++ b/src/pretix/base/services/cross_selling.py @@ -1,3 +1,25 @@ +# +# This file is part of pretix (Community Edition). +# +# Copyright (C) 2014-2020 Raphael Michel and contributors +# Copyright (C) 2020-2021 rami.io GmbH and contributors +# +# This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General +# Public License as published by the Free Software Foundation in version 3 of the License. +# +# ADDITIONAL TERMS APPLY: Pursuant to Section 7 of the GNU Affero General Public License, additional terms are +# applicable granting you additional permissions and placing additional restrictions on your usage of this software. +# Please refer to the pretix LICENSE file to obtain the full terms applicable to this work. If you did not receive +# this file, see . +# +# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more +# details. +# +# You should have received a copy of the GNU Affero General Public License along with this program. If not, see +# . +# + from collections import defaultdict from decimal import Decimal from itertools import groupby