From 0f2ce7770aabfc620371feadb3e47eb16697e7d4 Mon Sep 17 00:00:00 2001 From: Viggo de Vries Date: Wed, 15 May 2024 15:08:34 +0200 Subject: [PATCH] Update exists.py --- oscarapi/utils/exists.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oscarapi/utils/exists.py b/oscarapi/utils/exists.py index cff90da4..4e5f7db3 100644 --- a/oscarapi/utils/exists.py +++ b/oscarapi/utils/exists.py @@ -57,7 +57,7 @@ def find_existing_attribute_option_group(name, options): AttributeOptionGroup.objects.filter(name=name) .annotate(options_count=models.Count("options")) .filter(options_count=len(options)) - .filter(options__option__in=option) + .filter(options__option__in=options) ) try: