Commit 5974cbe3 authored by Simon Charette's avatar Simon Charette
Browse files

Removed unnecessary type creation in modelforset_factory.

parent eaecada7
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -842,8 +842,6 @@ def modelformset_factory(model, form=ModelForm, formfield_callback=None,
    Returns a FormSet class for the given Django model class.
    """
    meta = getattr(form, 'Meta', None)
    if meta is None:
        meta = type(str('Meta'), (object,), {})
    if (getattr(meta, 'fields', fields) is None and
            getattr(meta, 'exclude', exclude) is None):
        raise ImproperlyConfigured(