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.
17 lines
513 B
Python
17 lines
513 B
Python
from django import forms
|
|
from .models import Card
|
|
|
|
|
|
class CardForm(forms.ModelForm):
|
|
class Meta:
|
|
model = Card
|
|
fields = [
|
|
"title", "description", "priority", "assignee",
|
|
"start_date", "end_date", "due_date", "deadline_notification",
|
|
]
|
|
widgets = {
|
|
"start_date": forms.DateInput(attrs={"type": "date"}),
|
|
"end_date": forms.DateInput(attrs={"type": "date"}),
|
|
"due_date": forms.DateInput(attrs={"type": "date"}),
|
|
}
|