coderedcorp / coderedcorp/coderedcms

No context for 'buttons',

未关闭
#693 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Type: Bug
主要语言
Python
星标
765
派生
154
PR 合并指标
30 天内没有已合并 PR

描述

#### Describe the bug
No context for 'button', 'subtitle', 'message_heading', 'icon_classname', using coderedcms versions 4.1.0, 4.1.1, and 5.0.0 and wagtail 6.4.1.

#### Steps to reproduce
Go to the codered wagtail admin with Logging turned on with 'level': 'DEBUG'

#### Expected behavior
In the error.log expect to see:
Exception while resolving variable 'buttons' in template 'wagtailadmin/tables/title_cell.html'.
Traceback (most recent call last):
File "/home/django/red3/lib64/python3.12/site-packages/django/template/base.py", line 883, in _resolve_lookup
current = current[bit]
~~~~~~~^^^^^
File "/home/django/red3/lib64/python3.12/site-packages/django/template/context.py", line 85, in __getitem__
raise KeyError(key)
KeyError: 'buttons'
#### Additional context
Add any other context about the problem here.

贡献指南

这个仓库没有索引到贡献指南

调研方向

在启用 DEBUG 日志记录的情况下,在 CodeRed Wagtail admin 中复现该问题,并使用报告中的模板路径 wagtailadmin/tables/title_cell.html。跟踪缺失的 context 值 'buttons'、'button'、'subtitle'、'message_heading' 和 'icon_classname',然后确认预期的日志记录行为,再确定什么情况才算已解决。

由索引模型根据 Issue 内容生成。

评估

技术栈
django, python
领域
backend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。