mirror of https://github.com/django/django.git
Fixed #21489 -- Make formsets directly importable from django.forms.
This commit is contained in:
parent
7a0a3a64a8
commit
1c7a83ee8e
|
@ -5,5 +5,6 @@ Django validation and HTML form handling.
|
||||||
from django.core.exceptions import ValidationError # NOQA
|
from django.core.exceptions import ValidationError # NOQA
|
||||||
from django.forms.fields import * # NOQA
|
from django.forms.fields import * # NOQA
|
||||||
from django.forms.forms import * # NOQA
|
from django.forms.forms import * # NOQA
|
||||||
|
from django.forms.formsets import * # NOQA
|
||||||
from django.forms.models import * # NOQA
|
from django.forms.models import * # NOQA
|
||||||
from django.forms.widgets import * # NOQA
|
from django.forms.widgets import * # NOQA
|
||||||
|
|
|
@ -13,7 +13,7 @@ from django.utils.six.moves import xrange
|
||||||
from django.utils.translation import ungettext, ugettext as _
|
from django.utils.translation import ungettext, ugettext as _
|
||||||
|
|
||||||
|
|
||||||
__all__ = ('BaseFormSet', 'all_valid')
|
__all__ = ('BaseFormSet', 'formset_factory', 'all_valid')
|
||||||
|
|
||||||
# special field names
|
# special field names
|
||||||
TOTAL_FORM_COUNT = 'TOTAL_FORMS'
|
TOTAL_FORM_COUNT = 'TOTAL_FORMS'
|
||||||
|
|
|
@ -24,7 +24,8 @@ from django.utils.translation import ugettext_lazy as _, ugettext, string_concat
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'ModelForm', 'BaseModelForm', 'model_to_dict', 'fields_for_model',
|
'ModelForm', 'BaseModelForm', 'model_to_dict', 'fields_for_model',
|
||||||
'save_instance', 'ModelChoiceField', 'ModelMultipleChoiceField',
|
'save_instance', 'ModelChoiceField', 'ModelMultipleChoiceField',
|
||||||
'ALL_FIELDS',
|
'ALL_FIELDS', 'BaseModelFormSet', 'modelformset_factory',
|
||||||
|
'BaseInlineFormSet', 'inlineformset_factory',
|
||||||
)
|
)
|
||||||
|
|
||||||
ALL_FIELDS = '__all__'
|
ALL_FIELDS = '__all__'
|
||||||
|
|
Loading…
Reference in New Issue