0

我只想有一个表单集的标题示例:

    CaracFormSet = formset_factory(CaracForm, extra=0)
    CaracFormSet = CaracFormSet(prefix='carac',initial=initial)

我只想要标题怎么做?

    print CaracFormSet. what ?

这是我的表单集的标题:

    <input type="hidden" name="carac-TOTAL_FORMS" value="2" id="id_carac-TOTAL_FORMS
    " /><input type="hidden" name="carac-INITIAL_FORMS" value="2" id="id_carac-INITI
    AL_FORMS" /><input type="hidden" name="carac-MAX_NUM_FORMS" id="id_carac-MAX_NUM
    _FORMS" />

问候比西尔

4

1 回答 1

2

你需要management_form

print CaracFormSet.management_form
于 2012-04-10T09:30:30.347 回答