Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

newforms-admin: Fixed #4761 -- Moved default definition of filter_hor…

…izontal 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
  • Loading branch information...
commit 2a45bdf9acc7bd057ece6ad9367a335437726fd9 1 parent 20219e9
Russell Keith-Magee authored August 30, 2007

Showing 1 changed file with 2 additions and 3 deletions. Show diff stats Hide diff stats

  1. 5  django/contrib/admin/options.py
5  django/contrib/admin/options.py
@@ -118,7 +118,8 @@ class BaseModelAdmin(object):
118 118
     """Functionality common to both ModelAdmin and InlineAdmin."""
119 119
     raw_id_fields = ()
120 120
     fields = None
121  
-
  121
+    filter_vertical = ()
  122
+    filter_horizontal = ()
122 123
     def formfield_for_dbfield(self, db_field, **kwargs):
123 124
         """
124 125
         Hook for specifying the form Field instance for a given database Field
@@ -177,8 +178,6 @@ class ModelAdmin(BaseModelAdmin):
177 178
     save_on_top = False
178 179
     ordering = None
179 180
     prepopulated_fields = {}
180  
-    filter_vertical = ()
181  
-    filter_horizontal = ()
182 181
     inlines = []
183 182
 
184 183
     def __init__(self, model):

0 notes on commit 2a45bdf

Please sign in to comment.
Something went wrong with that request. Please try again.