New Features: - Add `Priority` enum and `priority` field to `Card` model. - Add `TicketComment` model and `TicketCommentCreateView` with inline comment support. - Introduce templatetag filters `add_class`, `field_type`, and `render_markdown`. Enhancements: - Extend `CustomUser.is_admin()` to recognise superusers. - Populate `KanbanConfig.ready()` to import signals for proper initialization. - Expand ticket views and URLs to include assignee, priority, and comment handling. Bug Fixes: - None.
20 lines
726 B
Python
20 lines
726 B
Python
from django.urls import path
|
|
|
|
from apps.tickets.views import (
|
|
TicketCommentCreateView,
|
|
TicketCreateView,
|
|
TicketDeleteView,
|
|
TicketDetailView,
|
|
TicketListView,
|
|
TicketUpdateView,
|
|
)
|
|
|
|
urlpatterns = [
|
|
path("tickets/", TicketListView.as_view(), name="ticket_list"),
|
|
path("tickets/create/", TicketCreateView.as_view(), name="ticket_create"),
|
|
path("tickets/<int:pk>/", TicketDetailView.as_view(), name="ticket_detail"),
|
|
path("tickets/<int:pk>/edit/", TicketUpdateView.as_view(), name="ticket_edit"),
|
|
path("tickets/<int:pk>/delete/", TicketDeleteView.as_view(), name="ticket_delete"),
|
|
path("tickets/<int:ticket_pk>/comments/", TicketCommentCreateView.as_view(), name="ticket_comment"),
|
|
]
|