feat(家庭成员): 添加家庭成员模型并关联感悟和计划

添加家庭成员模型(FamilyMember)并关联到感悟记录(InsightRecord)和今日计划(TodayPlan)
修改相关表单、视图和模板以支持发言人功能
添加数据库迁移文件和初始化脚本
更新报告模板显示发言人信息
This commit is contained in:
2026-01-23 20:35:30 +08:00
parent 5f9bd7da3e
commit 004f528c7f
7 changed files with 109 additions and 11 deletions

View File

@@ -133,7 +133,7 @@
{% if yesterday_insight %}
<ul>
{% for insight in yesterday_insight %}
<li>{{ insight.content }}</li>
<li><strong>{{ insight.speaker.name }}</strong>{{ insight.content }}</li>
{% endfor %}
</ul>
{% else %}
@@ -148,6 +148,7 @@
<table>
<thead>
<tr>
<th>发言人</th>
<th>类型</th>
<th>内容</th>
<th>优先级</th>
@@ -157,6 +158,7 @@
<tbody>
{% for plan in today_plan %}
<tr>
<td>{{ plan.speaker.name }}</td>
<td>{{ plan.get_type_display }}</td>
<td>{{ plan.content }}</td>
<td>{{ plan.get_priority_display }}</td>