summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2016-03-25 12:50:35 -0400
committerSimon Charette <charette.s@gmail.com>2016-03-25 12:50:35 -0400
commit5974cbe32ec8b678a49337f2570aa40cd63b5df9 (patch)
treed441470f367c5c364834be7ae3f452d27d0e59ed
parenteaecada7934cef85ceede66b5322f31db5b84df9 (diff)
Removed unnecessary type creation in modelforset_factory.
-rw-r--r--django/forms/models.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/django/forms/models.py b/django/forms/models.py
index 067f601493..d0bdbde0b6 100644
--- a/django/forms/models.py
+++ b/django/forms/models.py
@@ -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(