{% extends "base.html" %} {% block title %}Formset with `extra = 0` (Django 1.2+){% endblock %} {% block extrahead %} {% endblock %} {% block content %}
If you'd rather not have extra forms in your template, pass `extra = 0` to `formset_factory`, and supply a custom form template. This can easily be done using `formset.empty_form` in your template.
Note that `$(...).formset()` doesn't need to be called on an actual form -- here, we call it on an empty DIV. You can think of the selector as providing an "anchor point"; the "add another" link will be placed below this anchor point, and all cloned forms will appear between the anchor and the "add" link.
{% endblock %}