Kanban App
The kanban
Django app provides the core functionality for project and task management.
Models
Models for the Kanban application, including Task and related logic.
Sprint
Bases: Model
This holds information about a sprint
Task
Bases: Model
This holds information about a task
get_due_date_for_working_day(year, month, bank_holidays=None)
Returns the date for the Nth working day (Monday-Friday, excluding bank holidays) starting from the given month and year. If bau_working_day exceeds the number of working days in the month, continues into the next month(s). bau_working_day is 1-based (WD1 = first working day). bank_holidays: optional set/list of datetime.date objects to skip as working days.
Source code in kanban\models.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
|
get_due_display()
Return the appropriate due value based on task_type.
Source code in kanban\models.py
66 67 68 69 70 |
|
list_ordered()
classmethod
Return queryset ordered by 'list_order'.
Source code in kanban\models.py
116 117 118 119 |
|
ordered()
classmethod
Return queryset ordered by 'order'.
Source code in kanban\models.py
111 112 113 114 |
|
Views
Views for the Kanban application.
backlog(request)
Render the task list, ordered by list_order.
Source code in kanban\views.py
16 17 18 19 |
|
create_task(request)
Create a new task.
Source code in kanban\views.py
22 23 24 25 26 27 28 29 30 31 |
|
edit_task(request, pk)
Edit an existing task.
Source code in kanban\views.py
70 71 72 73 74 75 76 77 78 79 80 |
|
home(request)
Render the home page.
Source code in kanban\views.py
11 12 13 |
|
kanban_board(request)
Render the Kanban board, grouping tasks by status and ordering by 'order'.
Source code in kanban\views.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
|
reorder_list_tasks(request)
Reorder tasks by 'list_order'.
Source code in kanban\views.py
98 99 100 101 102 103 104 105 106 107 108 109 |
|
reorder_tasks(request)
Reorder tasks by 'order' and update their status.
Source code in kanban\views.py
83 84 85 86 87 88 89 90 91 92 93 94 95 |
|
story_board(request)
Render the story board, grouping tasks by status and ordering by 'order'.
Source code in kanban\views.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
|
Templates
kanban_board.html
: Kanban board UI.task_list.html
: Task list table.create_task.html
: Task creation form.edit_task.html
: Task editing form.sidebar.html
: Navigation sidebar.
Static
colors.css
: Color scheme.- JS/CSS for AG Grid, Bootstrap, SortableJS.