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
32678504
Commit
32678504
authored
Feb 13, 2017
by
Awais
Committed by
Bill DeRusha
Feb 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing course-run comment issue.
ECOM-7146
parent
7ecebff2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
course_discovery/apps/publisher/tests/test_views.py
+1
-1
course_discovery/apps/publisher/views.py
+1
-1
No files found.
course_discovery/apps/publisher/tests/test_views.py
View file @
32678504
...
...
@@ -842,7 +842,7 @@ class CourseRunDetailTests(TestCase):
self
.
client
.
login
(
username
=
self
.
user
.
username
,
password
=
USER_PASSWORD
)
site
=
Site
.
objects
.
get
(
pk
=
settings
.
SITE_ID
)
comment
=
CommentFactory
(
content_object
=
self
.
course
,
user
=
self
.
user
,
site
=
site
)
comment
=
CommentFactory
(
content_object
=
self
.
course
_run
,
user
=
self
.
user
,
site
=
site
)
response
=
self
.
client
.
get
(
self
.
page_url
)
self
.
assertEqual
(
response
.
status_code
,
200
)
self
.
_assert_credits_seats
(
response
,
self
.
wrapped_course_run
.
credit_seat
)
...
...
course_discovery/apps/publisher/views.py
View file @
32678504
...
...
@@ -141,7 +141,7 @@ class CourseRunDetailView(mixins.LoginRequiredMixin, mixins.PublisherPermissionM
user
=
self
.
request
.
user
course_run
=
CourseRunWrapper
(
self
.
get_object
())
context
[
'object'
]
=
course_run
context
[
'comment_object'
]
=
course_run
.
course
context
[
'comment_object'
]
=
course_run
context
[
'post_back_url'
]
=
reverse
(
'publisher:publisher_course_run_detail'
,
kwargs
=
{
'pk'
:
course_run
.
id
})
context
[
'can_edit'
]
=
mixins
.
check_course_organization_permission
(
...
...
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