Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #21489 -- Make formsets directly importable from django.forms.

  • Loading branch information...
commit 1c7a83ee8e3da431d9d21dae42da8f1f89973f7c 1 parent 7a0a3a6
@loic loic authored timgraham committed
View
1  django/forms/__init__.py
@@ -5,5 +5,6 @@
from django.core.exceptions import ValidationError # NOQA
from django.forms.fields import * # NOQA
from django.forms.forms import * # NOQA
+from django.forms.formsets import * # NOQA
from django.forms.models import * # NOQA
from django.forms.widgets import * # NOQA
View
2  django/forms/formsets.py
@@ -13,7 +13,7 @@
from django.utils.translation import ungettext, ugettext as _
-__all__ = ('BaseFormSet', 'all_valid')
+__all__ = ('BaseFormSet', 'formset_factory', 'all_valid')
# special field names
TOTAL_FORM_COUNT = 'TOTAL_FORMS'
View
3  django/forms/models.py
@@ -24,7 +24,8 @@
__all__ = (
'ModelForm', 'BaseModelForm', 'model_to_dict', 'fields_for_model',
'save_instance', 'ModelChoiceField', 'ModelMultipleChoiceField',
- 'ALL_FIELDS',
+ 'ALL_FIELDS', 'BaseModelFormSet', 'modelformset_factory',
+ 'BaseInlineFormSet', 'inlineformset_factory',
)
ALL_FIELDS = '__all__'
Please sign in to comment.
Something went wrong with that request. Please try again.