Skip to content
Snippets Groups Projects
Verified Commit 6fdde80e authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Add trainling slashes to urls.py and resort "all timetables" to top-level

parent be291180
No related branches found
No related tags found
1 merge request!31Biscuit merge. Closes #53.
...@@ -3,19 +3,19 @@ from django.urls import path ...@@ -3,19 +3,19 @@ from django.urls import path
from . import views from . import views
urlpatterns = [ urlpatterns = [
path("timetable/<str:_type>/<int:pk>", views.timetable, name="timetable"), path("", views.all, name="all_timetables"),
path("all_timetables", views.all, name="all_timetables"), path("timetable/<str:_type>/<int:pk>/", views.timetable, name="timetable"),
path("timetable/<str:_type>/<int:pk>/<int:year>/<int:week>", views.timetable, name="timetable_by_week"), path("timetable/<str:_type>/<int:pk>/<int:year>/<int:week>/", views.timetable, name="timetable_by_week"),
path("timetable/<str:_type>/<int:pk>/<str:regular>/", views.timetable, name="timetable_regular"), path("timetable/<str:_type>/<int:pk>/<str:regular>/", views.timetable, name="timetable_regular"),
path("lessons", views.lessons_day, name="lessons_day"), path("lessons/", views.lessons_day, name="lessons_day"),
path("lessons/<when>", views.lessons_day, name="lessons_day_by_date"), path("lessons/<when>/", views.lessons_day, name="lessons_day_by_date"),
path( path(
"lessons/<int:id_>/<int:week>/substition", "lessons/<int:id_>/<int:week>/substition/",
views.edit_substitution, views.edit_substitution,
name="edit_substitution", name="edit_substitution",
), ),
path( path(
"lessons/<int:id_>/<int:week>/substition/delete", "lessons/<int:id_>/<int:week>/substition/delete/",
views.delete_substitution, views.delete_substitution,
name="delete_substitution", name="delete_substitution",
), ),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment