Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
MOOC packages by hacklab
django-courses
Commits
d082f685
Commit
d082f685
authored
Jul 28, 2020
by
Bruno Martin
Browse files
use trailing_slash False and simple router
parent
b29c2589
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
courses/urls.py
courses/urls.py
+1
-2
No files found.
courses/urls.py
View file @
d082f685
...
...
@@ -31,8 +31,7 @@ from courses.classroom.views import (
EventViewSet
,
)
router
=
routers
.
DefaultRouter
()
router
=
routers
.
SimpleRouter
(
trailing_slash
=
False
)
router
.
register
(
r
'course'
,
CourseViewSet
,
base_name
=
'course'
)
router
.
register
(
r
'course_material'
,
CourseMaterialViewSet
,
base_name
=
'course_material'
)
router
.
register
(
r
'course_material_file'
,
CourseMaterialFileViewSet
,
base_name
=
'course_material_file'
)
...
...
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