From 148d182e5e1b268948464a1f5c8b618d817de6f6 Mon Sep 17 00:00:00 2001 From: SDE Date: Fri, 10 May 2024 13:52:47 +0300 Subject: [PATCH] 1.0.10 subscribe buy routines --- SubscribesApp/funcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SubscribesApp/funcs.py b/SubscribesApp/funcs.py index 75f8abc..c18fe4c 100644 --- a/SubscribesApp/funcs.py +++ b/SubscribesApp/funcs.py @@ -44,7 +44,7 @@ def check_n_enable_subscribe_by_order(order): order.subscribe_for_user = subscribe_for_user order.save() - SubscribeForUser.objects.exclude(id=subscribes_for_user).update(enable=False) + SubscribeForUser.objects.filter(user=order.user).exclude(id=subscribes_for_user.id).update(enable=False) subscribes_for_user = [subscribe_for_user]