class RepairWork(Form): title = TextField() serial_number = TextField() price = FloatField() quantity = IntegerField(default=1) class RepairWorkFieldList(Form): works = FieldList(FormField(RepairWork))
Как теперь правильно отрендерить works ?
class RepairWork(Form): title = TextField() serial_number = TextField() price = FloatField() quantity = IntegerField(default=1) class RepairWorkFieldList(Form): works = FieldList(FormField(RepairWork))
{% for work_form in form.works.entries %}
{{ renderForm(work_form) }}
{% endfor %}
TypeError: argument of type 'CSRFTokenField' is not iterable.
mikey
Объясните пожалуйста почему у меня вылетала ошибка. Если не трудно канеш