diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2007-08-31 05:43:21 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2007-08-31 05:43:21 +0000 |
| commit | 7405446b2e7ab27a40d768edbc928f66f9da5652 (patch) | |
| tree | c56cbc3d166238cf59d822c0dd8751c18e8ae825 /django/newforms | |
| parent | 2a45bdf9acc7bd057ece6ad9367a335437726fd9 (diff) | |
newforms-admin: Made import visibility of formsets and Media consistent with that of fields, widgets and forms.
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@6029 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/newforms')
| -rw-r--r-- | django/newforms/__init__.py | 1 | ||||
| -rw-r--r-- | django/newforms/formsets.py | 2 | ||||
| -rw-r--r-- | django/newforms/models.py | 2 | ||||
| -rw-r--r-- | django/newforms/widgets.py | 2 |
4 files changed, 5 insertions, 2 deletions
diff --git a/django/newforms/__init__.py b/django/newforms/__init__.py index 0d9c68f9e0..99631e4e8f 100644 --- a/django/newforms/__init__.py +++ b/django/newforms/__init__.py @@ -15,3 +15,4 @@ from widgets import * from fields import * from forms import * from models import * +from formsets import *
\ No newline at end of file diff --git a/django/newforms/formsets.py b/django/newforms/formsets.py index 38982b47de..ef1083ba28 100644 --- a/django/newforms/formsets.py +++ b/django/newforms/formsets.py @@ -2,6 +2,8 @@ from forms import Form, ValidationError from fields import IntegerField, BooleanField from widgets import HiddenInput, Media +__all__ = ('BaseFormSet', 'formset_for_form', 'all_valid') + # special field names FORM_COUNT_FIELD_NAME = 'COUNT' ORDERING_FIELD_NAME = 'ORDER' diff --git a/django/newforms/models.py b/django/newforms/models.py index 16800dfdbf..6b674bd757 100644 --- a/django/newforms/models.py +++ b/django/newforms/models.py @@ -15,7 +15,7 @@ from widgets import Select, SelectMultiple, HiddenInput, MultipleHiddenInput __all__ = ( 'save_instance', 'form_for_model', 'form_for_instance', 'form_for_fields', - 'ModelChoiceField', 'ModelMultipleChoiceField' + 'ModelChoiceField', 'ModelMultipleChoiceField', 'inline_formset' ) def save_instance(form, instance, fields=None, fail_message='saved', commit=True): diff --git a/django/newforms/widgets.py b/django/newforms/widgets.py index 2f157ade75..8aa375abf0 100644 --- a/django/newforms/widgets.py +++ b/django/newforms/widgets.py @@ -17,7 +17,7 @@ from util import flatatt from urlparse import urljoin __all__ = ( - 'Media', 'Widget', 'TextInput', 'PasswordInput', + 'Media', 'MediaDefiningClass', 'Widget', 'TextInput', 'PasswordInput', 'HiddenInput', 'MultipleHiddenInput', 'FileInput', 'Textarea', 'CheckboxInput', 'Select', 'NullBooleanSelect', 'SelectMultiple', 'RadioSelect', |
