Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
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
course-discovery
Commits
025c7b57
Commit
025c7b57
authored
Jul 26, 2017
by
Awais Jibran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Course Run not showing parent course prereqs
parent
95efd20b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
course_discovery/apps/publisher/tests/test_views.py
+4
-2
course_discovery/templates/publisher/course_run_detail/_drupal.html
+1
-1
No files found.
course_discovery/apps/publisher/tests/test_views.py
View file @
025c7b57
...
@@ -716,7 +716,8 @@ class CourseRunDetailTests(SiteMixin, TestCase):
...
@@ -716,7 +716,8 @@ class CourseRunDetailTests(SiteMixin, TestCase):
'Title'
,
'Number'
,
'Course ID'
,
'Price'
,
'Subtitle'
,
'Organization'
,
'Subject'
,
'XSeries'
,
'Title'
,
'Number'
,
'Course ID'
,
'Price'
,
'Subtitle'
,
'Organization'
,
'Subject'
,
'XSeries'
,
'Start Date (time in UTC)'
,
'End Date (time in UTC)'
,
'Self Paced'
,
'Staff'
,
'Estimated Effort'
,
'Start Date (time in UTC)'
,
'End Date (time in UTC)'
,
'Self Paced'
,
'Staff'
,
'Estimated Effort'
,
'Languages'
,
'Video Transcript Languages'
,
'Level'
,
'Full Description'
,
"What You'll Learn"
,
'Languages'
,
'Video Transcript Languages'
,
'Level'
,
'Full Description'
,
"What You'll Learn"
,
'Keywords'
,
'Sponsors'
,
'Enrollment Types'
,
'Learner Testimonials'
,
'FAQ'
,
'Course About Video'
'Keywords'
,
'Sponsors'
,
'Enrollment Types'
,
'Learner Testimonials'
,
'FAQ'
,
'Course About Video'
,
'Prerequisites'
]
]
for
field
in
fields
:
for
field
in
fields
:
self
.
assertContains
(
response
,
field
)
self
.
assertContains
(
response
,
field
)
...
@@ -729,7 +730,8 @@ class CourseRunDetailTests(SiteMixin, TestCase):
...
@@ -729,7 +730,8 @@ class CourseRunDetailTests(SiteMixin, TestCase):
self
.
wrapped_course_run
.
max_effort
,
self
.
wrapped_course_run
.
language
.
name
,
self
.
wrapped_course_run
.
max_effort
,
self
.
wrapped_course_run
.
language
.
name
,
self
.
wrapped_course_run
.
transcript_languages
,
self
.
wrapped_course_run
.
level_type
,
self
.
wrapped_course_run
.
transcript_languages
,
self
.
wrapped_course_run
.
level_type
,
self
.
wrapped_course_run
.
expected_learnings
,
self
.
wrapped_course_run
.
course
.
learner_testimonial
,
self
.
wrapped_course_run
.
expected_learnings
,
self
.
wrapped_course_run
.
course
.
learner_testimonial
,
self
.
wrapped_course_run
.
course
.
faq
,
self
.
wrapped_course_run
.
course
.
video_link
self
.
wrapped_course_run
.
course
.
faq
,
self
.
wrapped_course_run
.
course
.
video_link
,
self
.
wrapped_course_run
.
course
.
prerequisites
]
]
for
value
in
values
:
for
value
in
values
:
self
.
assertContains
(
response
,
value
)
self
.
assertContains
(
response
,
value
)
...
...
course_discovery/templates/publisher/course_run_detail/_drupal.html
View file @
025c7b57
...
@@ -223,7 +223,7 @@
...
@@ -223,7 +223,7 @@
{% include "publisher/course_run_detail/_clipboard.html" %}
{% include "publisher/course_run_detail/_clipboard.html" %}
</div>
</div>
<div
class=
"copy"
>
<div
class=
"copy"
>
{% with object.
prerequisite
as field %}
{% with object.
course.prerequisites
as field %}
{% include "publisher/_render_optional_field.html" %}
{% include "publisher/_render_optional_field.html" %}
{% endwith %}
{% endwith %}
</div>
</div>
...
...
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