>>> from demo.views import ItemForm
>>> from django.forms import formset_factory
>>> IFS = formset_factory(ItemForm)
>>> formset = IFS()
>>> for form in formset:
... print(form.as_table())
...
<tr><th><label for="id_form-0-code">Code:</label></th><td><select name="form-0-code" id="id_form-0-code">
<option value="" selected>---------</option>
<option value="1">foo</option>
</select></td></tr>
<tr><th><label for="id_form-0-amount">Amount:</label></th><td><input type="number" name="form-0-amount" value="0" id="id_form-0-amount" /></td></tr>
<tr><th><label for="id_form-0-description">Description:</label></th><td><textarea name="form-0-description" cols="40" rows="10" id="id_form-0-description">
</textarea></td></tr>