diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2007-08-30 05:33:45 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2007-08-30 05:33:45 +0000 |
| commit | 2a45bdf9acc7bd057ece6ad9367a335437726fd9 (patch) | |
| tree | bc10e67477cf4e539b1fd81abd2ebf61c995492f /django | |
| parent | 20219e9fb6d996a0a62db914f81bec04fbe92c8b (diff) | |
newforms-admin: Fixed #4761 -- Moved default definition of filter_horizontal and filter_vertical so that inline edits work with M2M fields.
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@6025 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/admin/options.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index 5259e06324..356de2e72c 100644 --- a/django/contrib/admin/options.py +++ b/django/contrib/admin/options.py @@ -118,7 +118,8 @@ class BaseModelAdmin(object): """Functionality common to both ModelAdmin and InlineAdmin.""" raw_id_fields = () fields = None - + filter_vertical = () + filter_horizontal = () def formfield_for_dbfield(self, db_field, **kwargs): """ Hook for specifying the form Field instance for a given database Field @@ -177,8 +178,6 @@ class ModelAdmin(BaseModelAdmin): save_on_top = False ordering = None prepopulated_fields = {} - filter_vertical = () - filter_horizontal = () inlines = [] def __init__(self, model): |
