Permalink
Browse files

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...
1 parent 20219e9 commit 2a45bdf9acc7bd057ece6ad9367a335437726fd9 @freakboy3742 freakboy3742 committed Aug 30, 2007
Showing with 2 additions and 3 deletions.
  1. +2 −3 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):

0 comments on commit 2a45bdf

Please sign in to comment.