Skip to content

Commit

Permalink
Fix getting value of all attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankHennige committed Jun 20, 2023
1 parent 5b0ce01 commit 87e2dfe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/oscar_pg_search/filter_options/attribute_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def get_query(self):
id__in=values_list)
values = values.values_list(self.fieldname, flat=True)
query_kwargs = {
'attribute_values__attribute__code': self.attribute.code,
f'attribute_values__{self.fieldname}__in': values,
}
return Q(**query_kwargs)
Expand Down

0 comments on commit 87e2dfe

Please sign in to comment.