Skip to content

Commit

Permalink
Fix get rules from order with option value instead of option code (#4269
Browse files Browse the repository at this point in the history
)

* Fix get rules from order with option value instead of option code

* Fix get rules from order with option value instead of option code

* fixed reformat

* change oscar-catalogue-menu and fixed some translation space was wrong

* fixed reformat

* change oscar-catalogue-menu and fixed some translation space was wrong

* small change v2
  • Loading branch information
svandeneertwegh committed Apr 22, 2024
1 parent f09739a commit c2c87f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/oscar/apps/order/abstract_models.py
Expand Up @@ -707,10 +707,11 @@ def description(self):
value = attribute.value
if isinstance(value, list):
ops.append(
"%s = '%s'" % (attribute.type, (", ".join([str(v) for v in value])))
"%s = '%s'"
% (attribute.option.name, (", ".join([str(v) for v in value])))
)
else:
ops.append("%s = '%s'" % (attribute.type, value))
ops.append("%s = '%s'" % (attribute.option.name, value))
if ops:
desc = "%s (%s)" % (desc, ", ".join(ops))
return desc
Expand Down

0 comments on commit c2c87f0

Please sign in to comment.