appadmin 中的 web2py 只读字段

web2py readonly fields in appadmin

web2py 文档摘录:

Forms created with
form = SQLFORM(...,ignore_rw=True)
ignore the readable and writable attributes and always show all fields. Forms in appadmin ignore them by default.

如何让它们像普通字段一样工作而不忽略这些参数?这应该用自定义 css 来完成吗?

appadmin.py 控制器中有一个 ignore_rw 顶级变量。您可以将其设置为 False.