We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d875589 commit f65e2e8Copy full SHA for f65e2e8
oscarapi/utils/exists.py
@@ -56,8 +56,7 @@ def find_existing_attribute_option_group(name, options):
56
query = (
57
AttributeOptionGroup.objects.filter(name=name)
58
.annotate(options_count=models.Count("options"))
59
- .filter(options_count=len(options))
60
- .filter(options__option__in=options)
+ .filter(options_count=len(options), options__option__in=options)
61
)
62
63
try:
0 commit comments