Ticket #8058: filtered-select-multiple-widget

File filtered-select-multiple-widget, 734 bytes (added by Erwin, 16 years ago)
Line 
1### Eclipse Workspace Patch 1.0
2#P django
3Index: django/contrib/admin/widgets.py
4===================================================================
5--- django/contrib/admin/widgets.py (revision 8160)
6+++ django/contrib/admin/widgets.py (working copy)
7@@ -20,6 +20,10 @@
8 Note that the resulting JavaScript assumes that the SelectFilter2.js
9 library and its dependencies have been loaded in the HTML page.
10 """
11+ class Media:
12+ js = (settings.ADMIN_MEDIA_PREFIX + 'js/SelectBox.js',
13+ settings.ADMIN_MEDIA_PREFIX + 'js/SelectFilter2.js',)
14+
15 def __init__(self, verbose_name, is_stacked, attrs=None, choices=()):
16 self.verbose_name = verbose_name
17 self.is_stacked = is_stacked
Back to Top