mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 21:42:14 +00:00
16 lines
505 B
Python
16 lines
505 B
Python
from django.urls import path
|
|
|
|
from django.contrib.auth.decorators import login_required
|
|
from PyRIGS.decorators import permission_required_with_403
|
|
|
|
from training import views
|
|
|
|
urlpatterns = [
|
|
path('items/', views.ItemList.as_view(), name='item_list'),
|
|
|
|
path('trainee/', login_required(views.TraineeDetail.as_view()), name='trainee_detail'),
|
|
path('trainee/<int:pk>/',
|
|
permission_required_with_403('RIGS.view_profile')(views.TraineeDetail.as_view()),
|
|
name='trainee_detail'),
|
|
]
|