Lorian's request for a thin comment field implemented.
authorBrandon King <kingb@caltech.edu>
Fri, 14 Aug 2009 22:05:27 +0000 (22:05 +0000)
committerBrandon King <kingb@caltech.edu>
Fri, 14 Aug 2009 22:05:27 +0000 (22:05 +0000)
htsworkflow/frontend/experiments/admin.py
htsworkflow/frontend/samples/admin.py

index 4563bde51895f860a37db7ded92f727bc5f28a9a..a4a1eef424ebedc0b2877c4a7a1ceaff1f985752 100644 (file)
@@ -1,11 +1,22 @@
 from htsworkflow.frontend.experiments.models import FlowCell, DataRun, ClusterStation, Sequencer, Lane
 from django.contrib import admin
+from django.forms import ModelForm
+from django.forms.fields import CharField
+from django.forms.widgets import TextInput
 from django.utils.translation import ugettext_lazy as _
 
+
+class LaneForm(ModelForm):
+    comment = CharField(widget=TextInput(attrs={'size':'80'}), required=False)
+    
+    class Meta:
+        model = Lane
+
 class LaneInline(admin.StackedInline):
   model = Lane
   max_num = 8
   extra = 8
+  form = LaneForm
 
 class DataRunOptions(admin.ModelAdmin):
   search_fields = [
index 1e01c88ecaaac214345fd1d3eff9c46f19714219..c7d543a65cb442c152237082d87f7fc9aeb46983 100644 (file)
@@ -6,6 +6,7 @@ from django.utils.translation import ugettext_lazy as _
 from htsworkflow.frontend.samples.models import Antibody, Cellline, Condition, ExperimentType, LibraryType, Species, Affiliation, Library, Tag
 from htsworkflow.frontend.experiments.models import Lane
 
+
 class LaneLibraryInline(admin.StackedInline):
   model = Lane
   extra = 0