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
849f24ab
Commit
849f24ab
authored
Jun 26, 2017
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the right helper function for finding course upgrade price for the sock
parent
00ba9c70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
openedx/features/course_experience/views/course_sock.py
+3
-3
No files found.
openedx/features/course_experience/views/course_sock.py
View file @
849f24ab
...
...
@@ -8,7 +8,7 @@ from web_fragments.fragment import Fragment
from
student.models
import
CourseEnrollment
from
course_modes.models
import
CourseMode
from
courseware.date_summary
import
VerifiedUpgradeDeadlineDate
from
courseware.views.views
import
get_co
urse_prices
from
courseware.views.views
import
get_co
smetic_verified_display_price
from
openedx.core.djangoapps.plugin_api.views
import
EdxFragmentView
...
...
@@ -41,11 +41,11 @@ class CourseSockFragmentView(EdxFragmentView):
show_course_sock
=
has_verified_mode
and
not
is_already_verified
and
not
deadline_has_passed
# Get the price of the course and format correctly
course_price
s
=
get_course_prices
(
course
)
course_price
=
get_cosmetic_verified_display_price
(
course
)
context
=
{
'show_course_sock'
:
show_course_sock
,
'course_price'
:
course_price
s
[
1
]
,
'course_price'
:
course_price
,
'course_id'
:
course
.
id
}
...
...
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