Introduce DRF views for ticket creation, listing, updating, and commenting, integrate admin registrations for new models, and provide a demo data command to seed initial content. This enables full project management workflow within the backend.
26 lines
789 B
Python
26 lines
789 B
Python
from django.urls import path
|
|
|
|
from src.tickets import views
|
|
|
|
urlpatterns = [
|
|
path("", views.TicketListCreateView.as_view(), name="ticket-list"),
|
|
path("priorities/", views.PriorityListView.as_view(), name="priority-list"),
|
|
path(
|
|
"priorities/<int:pk>/",
|
|
views.PriorityDetailView.as_view(),
|
|
name="priority-detail",
|
|
),
|
|
path("<int:pk>/", views.TicketDetailView.as_view(), name="ticket-detail"),
|
|
path("<int:pk>/move/", views.move_ticket_view, name="ticket-move"),
|
|
path(
|
|
"<int:ticket_pk>/comments/",
|
|
views.TicketCommentListCreateView.as_view(),
|
|
name="ticket-comment-list",
|
|
),
|
|
path(
|
|
"<int:ticket_pk>/histories/",
|
|
views.TicketHistoryListView.as_view(),
|
|
name="ticket-history-list",
|
|
),
|
|
]
|