... (unbound) フォーム Form のインスタンスには、データセットに バインドされている (bound な) ものと バインドされていない (unbound な) も ... メソッドによって抽出された、この BoundField のデータを返します。もしデータが与えられていない場合は、 None を返します。 >>> unbound_form = ContactForm () >>> print ( unbound_form [ "subject" ] . data ) None >>> bound_form = ContactForm ( data = { "subjec ... によってレンダリングされるフィールドの生の値をレンダリングできます: >>> initial = { "subject" : "welcome" } >>> unbound_form = ContactForm ( initial = initial ) >>> bound_form = ContactForm ( data = { "subject" : "hi" }, initial = initial ) > ... ... ... とともにフォームを作成するため、時間、労力、コードを大幅に節約できます。 バインドされた (bound) および バインドされていない (unbound) フォームインスタンス バインドされた (bound) フォームとバインドされていない (unbound) フォーム の区別は重要です: バインドさ ... れていない (unboundの) フォームには連結したデータがありません。ユーザーにレンダリングするとき、空ないしデフォルト値となります。 バインドされた ... ... fault = True ) [ソース] Adds a field to a model. model_name is the model's name, name is the field's name, and field is an unbound Field instance (the thing you would put in the field declaration in models.py - for example, models.IntegerField(null=True ... 2026年10月08日