projects
/
htsworkflow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3bab48f
)
Shrink flowcell notes field.
author
Diane Trout
<diane@caltech.edu>
Sat, 14 Aug 2010 00:23:06 +0000
(
00:23
+0000)
committer
Diane Trout
<diane@caltech.edu>
Sat, 14 Aug 2010 00:23:06 +0000
(
00:23
+0000)
See [ticket:167]
htsworkflow/frontend/experiments/admin.py
patch
|
blob
|
history
diff --git
a/htsworkflow/frontend/experiments/admin.py
b/htsworkflow/frontend/experiments/admin.py
index cb5a94b220af12b20bfd9abe8a06fa4818cdbaf1..47bcc148e835f39cb7f9d62ee731fb599d46f0f5 100644
(file)
--- a/
htsworkflow/frontend/experiments/admin.py
+++ b/
htsworkflow/frontend/experiments/admin.py
@@
-76,17
+76,23
@@
class FlowCellOptions(admin.ModelAdmin):
list_filter = ('sequencer','cluster_station')
fieldsets = (
(None, {
list_filter = ('sequencer','cluster_station')
fieldsets = (
(None, {
- 'fields': ('run_date', ('flowcell_id','cluster_station','sequencer'), ('read_length', 'control_lane', 'paired_end'),)
+ 'fields': ('run_date', ('flowcell_id','cluster_station','sequencer'),
+ ('read_length', 'control_lane', 'paired_end'),)
}),
}),
- #('Lanes:', {
- # 'fields' : (('lane__library__id', 'lane__pM', 'lane__cluster_estimate'),)
- #}),
('Notes:', { 'fields': ('notes',),}),
)
inlines = [
LaneInline,
]
('Notes:', { 'fields': ('notes',),}),
)
inlines = [
LaneInline,
]
+ def formfield_for_dbfield(self, db_field, **kwargs):
+ field = super(FlowCellOptions, self).formfield_for_dbfield(db_field,
+ **kwargs)
+ # Override field attributes
+ if db_field.name == "notes":
+ field.widget.attrs["rows"] = "3"
+ return field
+
class ClusterStationOptions(admin.ModelAdmin):
list_display = ('name', )
fieldsets = ( ( None, { 'fields': ( 'name', ) } ), )
class ClusterStationOptions(admin.ModelAdmin):
list_display = ('name', )
fieldsets = ( ( None, { 'fields': ( 'name', ) } ), )