Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-val
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-val
Commits
14fb480a
Commit
14fb480a
authored
Sep 18, 2014
by
Dave St.Germain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use correct auth/permissions.
parent
a6d155f7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
edxval/urls.py
+1
-1
edxval/views.py
+2
-1
No files found.
edxval/urls.py
View file @
14fb480a
...
...
@@ -35,7 +35,7 @@ urlpatterns = patterns(
name
=
"course-video-list"
),
url
(
r'^youtube/(?P<youtube_id>[\w]+)$'
,
r'^youtube/(?P<youtube_id>[
-_
\w]+)$'
,
views
.
YoutubeVideoList
.
as_view
(),
name
=
"youtube-video-list"
),
...
...
edxval/views.py
View file @
14fb480a
...
...
@@ -77,7 +77,8 @@ class YoutubeVideoList(generics.ListAPIView):
"""
Get a list of videos for the given youtube id
"""
permission_classes
=
(
DjangoModelPermissions
,)
authentication_classes
=
(
OAuth2Authentication
,
SessionAuthentication
)
permission_classes
=
(
ReadRestrictedDjangoModelPermissions
,)
serializer_class
=
VideoSerializer
queryset
=
Video
.
objects
.
all
()
...
...
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