projects
/
htsworkflow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
17d8d80
)
Also use the javascript dual panel choice box for tags.
author
Diane Trout
<diane@caltech.edu>
Thu, 8 Oct 2009 19:39:33 +0000
(19:39 +0000)
committer
Diane Trout
<diane@caltech.edu>
Thu, 8 Oct 2009 19:39:33 +0000
(19:39 +0000)
htsworkflow/frontend/samples/admin.py
patch
|
blob
|
history
diff --git
a/htsworkflow/frontend/samples/admin.py
b/htsworkflow/frontend/samples/admin.py
index 5366e593f90f1638b875b8f9e3f7470ee1dd4973..074ad16fdfb55baf8021531a2e7adc6dd4b48468 100644
(file)
--- a/
htsworkflow/frontend/samples/admin.py
+++ b/
htsworkflow/frontend/samples/admin.py
@@
-156,11
+156,12
@@
class LibraryOptions(admin.ModelAdmin):
# some post 1.0.2 version of django has formfield_overrides
# which would replace this code with:
# formfield_overrids = {
# some post 1.0.2 version of django has formfield_overrides
# which would replace this code with:
# formfield_overrids = {
- # models.ManyToMany: { 'widget': widgets.FilteredSelectMultiple }
- #
}
+ #
models.ManyToMany: { 'widget': widgets.FilteredSelectMultiple }
+ #}
def formfield_for_dbfield(self, db_field, **kwargs):
def formfield_for_dbfield(self, db_field, **kwargs):
- if db_field.name == 'affiliations':
- kwargs['widget'] = widgets.FilteredSelectMultiple(db_field.verbose_name, (db_field.name in self.filter_vertical))
+ if db_field.name in ('affiliations', 'tags'):
+ kwargs['widget'] = widgets.FilteredSelectMultiple(db_field.verbose_name,
+ (db_field.name in self.filter_vertical))
rv = super(LibraryOptions, self).formfield_for_dbfield(db_field, **kwargs)
return rv
rv = super(LibraryOptions, self).formfield_for_dbfield(db_field, **kwargs)
return rv