2
A
回答
3
我只是做了一些玩耍,並得出這個結論:
{% if field.widget.input_type != 'hidden' %
{{ field.label }}
{% endif %}
相關問題
- 1. Android:檢查一個片段是否可見
- 2. Flask-WTForms:如何檢查是否需要字段?
- 3. 檢查UIAlertView是否可見
- 4. 如何檢查一個字符在JS中是否可見?
- 5. 如何讓兩個龜在一個補丁中都可見?
- 6. 是否可以在matplotlib中打補丁?
- 7. 如何檢查Oracle補丁是否安裝?
- 8. WLST - 如何檢查補丁是否已安裝?
- 9. 檢查彈出菜單是否無效/檢查彈出菜單是否可見
- 10. Android:可以使用9個補丁來繪製按鈕? (見圖)
- 11. 如何檢查一個字符串是否可以放入richtextbox可見區域
- 12. 意見。一個字段可以查詢多個字段?
- 13. 檢查一個人是否可用
- 14. 如何檢查一個精靈對象是否可見?
- 15. 我如何檢查一個元素在php中是否可見?
- 16. 檢查一個特定的UITableViewCell是否在UITableView中可見
- 17. 如何檢查另一個視圖控制器是否可見?
- 18. 檢查一個SKNode是否在屏幕上並且可見
- 19. NSIS補丁(一個文件中有多個補丁)
- 20. 檢查UITableViewCell是否完全可見
- 21. iOS - 檢查MFMessageComposeViewController當前是否可見
- 22. 檢查表單組是否可見
- 23. 檢查div是否可見與jQuery
- 24. 檢查圖像是否可見(CoronaSDK)
- 25. 咖啡 - 檢查屏幕是否可見
- 26. 如何檢查圖像是否可見?
- 27. 檢查TextView是否完全可見
- 28. Deplhi TEmbeddedWB檢查元素是否可見
- 29. VirtualTreeView:檢查節點是否可見
- 30. 檢查窗口標題是否可見
的FileInput似乎並不具有這種屬性。我必須做getattr(field.widget,'input_type',None)!='隱藏' – Daniel