问题
问题.png
错误写法.png
由于我在get_formatted_notice() 中使用了session去获取的但是我又在下面又使用了formatted_notice.template.output()
因为里头对应的关联的表找不到,并且不在session中,导致该错误
解决办法:
图片.png
将session 包裹在这两行代码中
由于我在get_formatted_notice() 中使用了session去获取的但是我又在下面又使用了formatted_notice.template.output()
因为里头对应的关联的表找不到,并且不在session中,导致该错误
将session 包裹在这两行代码中