Add fields list to a few ModelForms Meta class.
[htsworkflow.git] / htsworkflow / frontend / experiments / admin.py
index 1a27a17c6ffc2a1e19898947960a50347a89643f..e2ea65962e2305200f6212c0e334beb47cb78b23 100644 (file)
@@ -13,6 +13,7 @@ from django.utils.translation import ugettext_lazy as _
 class DataFileForm(ModelForm):
     class Meta:
         model = DataFile
+        fields = ('random_key', 'data_run', 'library', 'file_type', 'relative_pathname')
 
 class DataFileInline(admin.TabularInline):
     model = DataFile
@@ -65,6 +66,8 @@ class LaneForm(ModelForm):
 
     class Meta:
         model = Lane
+        fields = ('flowcell', 'lane_number', 'library', 'pM', 'cluster_estimate',
+                  'status', 'comment')
 
 class LaneInline(admin.StackedInline):
     """