【发布时间】:2021-04-21 20:59:59
【问题描述】:
users.html
<td><div class="form-group">
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="user-{{i.id}}" {{(i.status) ? 'checked' : ' '}}
onclick="changeUserStatus(event.target, {{ i.id }});">
<label class="custom-control-label pointer"></label>
</div>
</div>
</td>
为什么会出现这个错误?
Could not parse the remainder: '(i.status=='True') ? 'checked' : ''' from '(i.status=='True') ? 'checked' : '''
任何帮助将不胜感激?
【问题讨论】:
标签: django django-errors