未登录状态下创建的 todo 可以被所有人看到并修改或删除,登录 后创建的 todo 则只有自己可修改、删除。想要让自己创建的 todo 对其他人不可见,在代码中移除 acl.set_public_read_access(True)
这一行即可。
{% if todos|length == 1 %}只剩下最后{% else %}共{% endif %} {{ todos|length }} 个 todo。
79 | {% endif %} 80 | {% endblock %} -------------------------------------------------------------------------------- /templates/users/login.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |{{ message }}
23 | {% endfor %} 24 | {% endif %} 25 | {% endwith %} 26 | 35 |Powered by LeanCloud | Runs on LeanEngine
39 |{{ message }}
23 | {% endfor %} 24 | {% endif %} 25 | {% endwith %} 26 | 35 |Powered by LeanCloud | Runs on LeanEngine
39 |