Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified sale line serialization for cart #7211 #85

Merged
merged 1 commit into from
Mar 9, 2015

Conversation

PritishC
Copy link
Contributor

@PritishC PritishC commented Mar 4, 2015

By default, the standard fields 'display_name', 'url', 'image' are picked from the sale line's product. In downstream modules this behaviour can be modified.

Ref: #84

@@ -164,6 +164,13 @@ def serialize(self, purpose=None):
if purpose == 'cart':
res.update({
'id': self.id,
'display_name': self.description or self.product.name,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think description is required

By default, the standard fields 'display_name', 'url', 'image' are
picked from the sale line's product. In downstream modules this
behaviour can be modified.
tarunbhardwaj added a commit that referenced this pull request Mar 9, 2015
Modified sale line serialization for cart #7211
@tarunbhardwaj tarunbhardwaj merged commit 13be199 into openlabs:3.2 Mar 9, 2015
@tarunbhardwaj
Copy link
Contributor

@PritishC please send same patch for 3.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants