Criado uma ListView base e utilizada como padrão para exibir os registros cadastrados
13 lines
361 B
Python
13 lines
361 B
Python
from django.urls import path
|
|
from ..views import RotationListView
|
|
|
|
from ..views import rotation as views
|
|
|
|
app_name = 'rotation'
|
|
|
|
urlpatterns = [
|
|
path('', RotationListView.as_view(), name='rotation_home'),
|
|
|
|
path('new/', views.rotation_create, name='rotation_create'),
|
|
path('delete/<int:rotation_id>', views.rotation_delete, name='rotation_delete'),
|
|
] |