From fd6da2de816d69923da9d41daa4582608aef628f Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Thu, 21 Dec 2023 15:17:10 +0800 Subject: [PATCH] Fix urls for transactions --- equipment_tracker/transactions/urls.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/equipment_tracker/transactions/urls.py b/equipment_tracker/transactions/urls.py index 339bda7..6a8d5c7 100644 --- a/equipment_tracker/transactions/urls.py +++ b/equipment_tracker/transactions/urls.py @@ -6,7 +6,8 @@ router = routers.DefaultRouter() router.register(r'', views.TransactionViewSet) urlpatterns = [ + path('student/', views.TransactionByStudentViewSet.as_view()), + path('teacher/', views.TransactionByTeacherViewSet.as_view()), path('', include(router.urls)), - path('student', views.TransactionByStudentViewSet.as_view()), - path('teacher', views.TransactionByTeacherViewSet.as_view()), + ]