Skip to content

Commit

Permalink
Merge pull request #4286 from django-oscar/set-attributes-in-container
Browse files Browse the repository at this point in the history
[FEAT] Add attribute setter in product attribute container
  • Loading branch information
specialunderwear committed Apr 29, 2024
2 parents ebb2af4 + 3460917 commit f378ea0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/oscar/apps/catalogue/product_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ def attribute_values(self):
.annotate(code=models.F("attribute__code"))
)

def set_attributes(self, attributes):
self.__dict__["attributes"] = attributes


class ProductAttributesContainer:
"""
Expand Down

0 comments on commit f378ea0

Please sign in to comment.