|
6 | 6 | TrainerListView, TrainerDetailView, TrainerCreateView, TrainerUpdateView, TrainerDeleteView
|
7 | 7 | )
|
8 | 8 |
|
| 9 | +from profiles.views.sport_doctors import ( |
| 10 | + SportDoctorListView, SportDoctorDetailView, SportDoctorCreateView, SportDoctorUpdateView, SportDoctorDeleteView |
| 11 | +) |
| 12 | + |
9 | 13 | urlpatterns = [
|
10 | 14 | # Athletes
|
11 |
| - path("athletes/", AthleteListView.as_view(), name="athletes_list"), |
| 15 | + path("athletes/", AthleteListView.as_view(), name="athlete_list"), |
12 | 16 | path("athletes/<int:pk>/", AthleteDetailView.as_view(), name="athlete_detail"),
|
13 | 17 | path("athletes/new/", AthleteCreateView.as_view(), name="athlete_create"),
|
14 | 18 | path("athletes/<int:pk>/edit/", AthleteUpdateView.as_view(), name="athlete_update"),
|
15 | 19 | path("athletes/<int:pk>/delete/", AthleteDeleteView.as_view(), name="athlete_delete"),
|
16 | 20 |
|
17 | 21 | # Trainers
|
18 |
| - path("trainers/", TrainerListView.as_view(), name="trainers_list"), |
| 22 | + path("trainers/", TrainerListView.as_view(), name="trainer_list"), |
19 | 23 | path("trainers/<int:pk>/", TrainerDetailView.as_view(), name="trainer_detail"),
|
20 | 24 | path("trainers/new/", TrainerCreateView.as_view(), name="trainer_create"),
|
21 | 25 | path("trainers/<int:pk>/edit/", TrainerUpdateView.as_view(), name="trainer_update"),
|
22 | 26 | path("trainers/<int:pk>/delete/", TrainerDeleteView.as_view(), name="trainer_delete"),
|
| 27 | + |
| 28 | + # Sport Doctors |
| 29 | + path("sport_doctors/", SportDoctorListView.as_view(), name="sport_doctor_list"), |
| 30 | + path("sport_doctors/<int:pk>/", SportDoctorDetailView.as_view(), name="sport_doctor_detail"), |
| 31 | + path("sport_doctors/new/", SportDoctorCreateView.as_view(), name="sport_doctor_create"), |
| 32 | + path("sport_doctors/<int:pk>/edit/", SportDoctorUpdateView.as_view(), name="sport_doctor_update"), |
| 33 | + path("sport_doctors/<int:pk>/delete/", SportDoctorDeleteView.as_view(), name="sport_doctor_delete"), |
23 | 34 | ]
|
0 commit comments