万博max手机登录版-信誉保证

AttributeError at /product/CO00800100/Scharlab/

'NoneType' object has no attribute 'CAS_str'
Request Method: GET
Request URL: http://ay1.labnovo.com/product/CO00800100/Scharlab/
Django Version: 1.7.11
Exception Type: AttributeError
Exception Value:
'NoneType' object has no attribute 'CAS_str'
Exception Location: /home/labnovo_dev/product_ln/templatetags/filter_product.py in product_img_structure, line 75
Python Executable: /root/anaconda2/bin/python
Python Version: 2.7.15
Python Path:
['/home/labnovo_dev',
 '.',
 '',
 '/root/anaconda2/lib/python27.zip',
 '/root/anaconda2/lib/python2.7',
 '/root/anaconda2/lib/python2.7/plat-linux2',
 '/root/anaconda2/lib/python2.7/lib-tk',
 '/root/anaconda2/lib/python2.7/lib-old',
 '/root/anaconda2/lib/python2.7/lib-dynload',
 '/root/anaconda2/lib/python2.7/site-packages',
 '/root/anaconda2/lib/python2.7/site-packages',
 '/home',
 '/home/labnovo_dev']
Server time: Fri, 31 Dec 2021 18:05:20 +0800

Error during template rendering

In template /home/labnovo_dev/product_ln/templates/product/lb_structure_img.html, error at line 74

'NoneType' object has no attribute 'CAS_str'

64 // 循环轮播到某个特定的帧
65 {%for i in productattach %}
66 $(".slide-{{forloop.counter}}").click(function () {
67 $("#myCarousel_{{ productchemical.pk }}").carousel({{forloop.counter}});
68 });
69 {%endfor%}
70
71 });
72
73 {% else %}
74 {% product_img_structure productchemical size %}
75
76 {% endif%}
77