我有一个django1.8项目,我使用django suit==0.2.25。你知道吗
当我想添加新项目时,出现一个错误:
TypeError at /admin/tours/tour/add/
unsupported operand type(s) for -: 'NoneType' and 'int'
此代码在路径...venv/lib/python3.5/site-packages/suit/templates/admin/includes/fieldset.html, error at line 44
中突出显示:
<span class="readonly">
{{ field|field_contents_foreign_linked }}
</span>
请告诉我任何提示。 我已经试过了:https://github.com/darklow/django-suit/issues/638 但没有成功。你知道吗
当返回NoneType时,可以尝试插入null值“0”。你知道吗
例如:
这将停止错误,但我不确定它将如何影响代码。。你知道吗
相关问题 更多 >
编程相关推荐