*** models.py	Sun Feb 13 20:55:51 2011
--- amodels.py	Wed Feb 16 13:05:37 2011
***************
*** 380,386 ****
      __metaclass__ = ModelFormMetaclass
  
  def modelform_factory(model, form=ModelForm, fields=None, exclude=None,
!                        formfield_callback=None):
      # Create the inner Meta class. FIXME: ideally, we should be able to
      # construct a ModelForm without creating and passing in a temporary
      # inner class.
--- 380,386 ----
      __metaclass__ = ModelFormMetaclass
  
  def modelform_factory(model, form=ModelForm, fields=None, exclude=None,
!                        widgets=None, formfield_callback=None):
      # Create the inner Meta class. FIXME: ideally, we should be able to
      # construct a ModelForm without creating and passing in a temporary
      # inner class.
***************
*** 391,396 ****
--- 391,398 ----
          attrs['fields'] = fields
      if exclude is not None:
          attrs['exclude'] = exclude
+     if widgets is not None:
+         attrs['widgets'] = widgets
  
      # If parent form class already has an inner Meta, the Meta we're
      # creating needs to inherit from the parent's inner meta.
