Skip to content

Commit

Permalink
Update exists.py
Browse files Browse the repository at this point in the history
  • Loading branch information
viggo-devries authored May 15, 2024
1 parent 1afce42 commit 0f2ce77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oscarapi/utils/exists.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0f2ce77

Please sign in to comment.