Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
値が初期化されたdjangoフォームがありますが、値をユーザーに表示したくありません。テンプレートで{{formobject.fieldname}}を使用していますが、値も表示されます。フィールドを非表示にするオプションはありますか?価値だけ?
Initialise a second, unbound form in your view,
blank_form = MyForm()
then use this form to render your blank fields in the template.
{{ blank_form.fieldname }}