Skip to content

Commit

Permalink
Lekker snugger dan
Browse files Browse the repository at this point in the history
  • Loading branch information
viggo-devries committed May 15, 2024
1 parent 0f2ce77 commit 34e5a05
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions oscarapi/utils/exists.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ def find_existing_attribute_option_group(name, options):
query = (
AttributeOptionGroup.objects.filter(name=name)
.annotate(options_count=models.Count("options"))
.filter(options_count=len(options))
.filter(options__option__in=options)
.filter(options_count=len(options), options__option__in=options)
)

try:
Expand Down

0 comments on commit 34e5a05

Please sign in to comment.