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.
16 lines
482 B
Python
16 lines
482 B
Python
from django.contrib import admin
|
|
|
|
from apps.tickets.models import Ticket, TicketComment
|
|
|
|
|
|
@admin.register(Ticket)
|
|
class TicketAdmin(admin.ModelAdmin):
|
|
list_display = ["title", "creator", "assignee", "ticket_type", "priority", "status", "project", "created_at"]
|
|
list_filter = ["ticket_type", "status", "priority"]
|
|
search_fields = ["title"]
|
|
|
|
|
|
@admin.register(TicketComment)
|
|
class TicketCommentAdmin(admin.ModelAdmin):
|
|
list_display = ["ticket", "author", "created_at"]
|