-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Updated receipt page to use order endpoint #10349
Conversation
6269e91
to
bb9284e
Compare
authentication_classes = (SessionAuthentication,) | ||
permission_classes = (IsAuthenticated,) | ||
|
||
def get(self, request, *args, **kwargs): # pylint:disable=unused-argument |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this take args
and kwargs
, rather than just having an explicit argument for number
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the format of the parent class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docs (http://www.django-rest-framework.org/api-guide/views/) use named parameters. You're also expecting number
and only number
as parameters in the url, so I'm not sure why having args
and kwargs
is a benefit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I stand corrected. Updated.
A few minor comments, but 👍 otherwise. |
9368188
to
1acd4a8
Compare
jenkins run python |
The receipt page now retrieves data for orders instead of baskets. Going forward baskets will be deleted after an order has been placed, so there should be no permanent references to baskets. Orders will continue to be persisted permanently. ECOM-2653
1acd4a8
to
9bb3f70
Compare
LGTM 👍 |
👍 |
Updated receipt page to use order endpoint
The receipt page now retrieves data for orders instead of baskets. Going forward baskets will be deleted after an order has been placed, so there should be no permanent references to baskets. Orders will continue to be persisted permanently.
ECOM-2653