      """
      A collection of instances of the same Form class.
      """
      def __init__(self, data=None, files=None, auto_id='id_%s', prefix=None,
                   initial=None, error_class=ErrorList):
          self.is_bound = data is not None or files is not None
          self.prefix = prefix or self.get_default_prefix()
          self.auto_id = auto_id
          self.data = data or {}
          self.files = files or {}
 
</s> remove         forms = [self._construct_form(i) for i in range(self.total_form_count())]
 </s> add         forms = [self._construct_form(i, **self.get_form_kwargs(i))
                 for i in range(self.total_form_count())]
                 initial=None, error_class=ErrorList, form_kwargs=None):
      """
      A collection of instances of the same Form class.
      """
      def __init__(self, data=None, files=None, auto_id='id_%s', prefix=None,
                 initial=None, error_class=ErrorList, form_kwargs=None):
          self.is_bound = data is not None or files is not None
          self.prefix = prefix or self.get_default_prefix()
          self.auto_id = auto_id
          self.data = data or {}
          self.files = files or {}
keep keep keep keep replace keep keep keep keep keep
 Fixed #18166 -- Added form_kwargs support to formsets.

By specifying form_kwargs when instantiating the formset, or overriding
the `get_form_kwargs` method on a formset class, you can pass extra
keyword arguments to the underlying `Form` instances.

Includes tests and documentation update. 
django/forms/formsets.py