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: