Skip to content

Commit

Permalink
fix 🔧 set QuerysetCache directly using set_attributes method
Browse files Browse the repository at this point in the history
  • Loading branch information
samar-hassan committed Apr 27, 2024
1 parent dea9cec commit 3460917
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/oscar/apps/catalogue/product_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,7 @@ def attribute_values(self):
)

def set_attributes(self, attributes):
"""
Used in oscar odin to prefetch attributes instead of fetching against each
product.
"""
self.__dict__["attributes"] = QuerysetCache(attributes)
self.__dict__["attributes"] = attributes


class ProductAttributesContainer:
Expand Down

0 comments on commit 3460917

Please sign in to comment.