Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
35e4e9d8
Commit
35e4e9d8
authored
Mar 19, 2015
by
Adam Palay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolve more merge conflicts
parent
b5c4b638
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
lms/djangoapps/commerce/views.py
+0
-17
No files found.
lms/djangoapps/commerce/views.py
View file @
35e4e9d8
...
...
@@ -79,23 +79,6 @@ class OrdersView(APIView):
if
not
valid
:
return
DetailResponse
(
error
,
status
=
HTTP_406_NOT_ACCEPTABLE
)
# Ensure that the course has an honor mode with SKU
honor_mode
=
CourseMode
.
mode_for_course
(
course_key
,
CourseMode
.
HONOR
)
course_id
=
unicode
(
course_key
)
# If there is no honor course mode, this most likely a Prof-Ed course. Return an error so that the JS
# redirects to track selection.
if
not
honor_mode
:
msg
=
Messages
.
NO_HONOR_MODE
.
format
(
course_id
=
course_id
)
return
DetailResponse
(
msg
,
status
=
HTTP_406_NOT_ACCEPTABLE
)
elif
not
honor_mode
.
sku
:
# If there are no course modes with SKUs, enroll the user without contacting the external API.
msg
=
Messages
.
NO_SKU_ENROLLED
.
format
(
enrollment_mode
=
CourseMode
.
HONOR
,
course_id
=
course_id
,
username
=
user
.
username
)
log
.
debug
(
msg
)
self
.
_enroll
(
course_key
,
user
)
return
DetailResponse
(
msg
)
# Ensure that the E-Commerce API is setup properly
ecommerce_api_url
=
getattr
(
settings
,
'ECOMMERCE_API_URL'
,
None
)
ecommerce_api_signing_key
=
getattr
(
settings
,
'ECOMMERCE_API_SIGNING_KEY'
,
None
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment