Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #8292 -- Honor filter_horizontal and filter_vertical in inlines…

… correctly. It now adds the right Javascript to handle them when they are the only ones on the page. Thanks dakrauth for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8392 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0ca738363afafacf1a82c978b2a2d1e00d9495a8 1 parent 7271331
Brian Rosner authored August 15, 2008

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

  1. 2  django/contrib/admin/options.py
2  django/contrib/admin/options.py
@@ -828,6 +828,8 @@ def _media(self):
828 828
         js = []
829 829
         if self.prepopulated_fields:
830 830
             js.append('js/urlify.js')
  831
+        if self.filter_vertical or self.filter_horizontal:
  832
+            js.extend(['js/SelectBox.js' , 'js/SelectFilter2.js'])
831 833
         return forms.Media(js=['%s%s' % (settings.ADMIN_MEDIA_PREFIX, url) for url in js])
832 834
     media = property(_media)
833 835
 

0 notes on commit 0ca7383

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