Add fields list to a few ModelForms Meta class.
authorDiane Trout <diane@caltech.edu>
Wed, 7 May 2014 00:15:15 +0000 (17:15 -0700)
committerDiane Trout <diane@ghic.org>
Tue, 10 Jun 2014 23:40:48 +0000 (16:40 -0700)
Django 1.7 threw a warning that they were going to require that by 1.8

htsworkflow/frontend/experiments/admin.py
htsworkflow/frontend/samples/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):
     """
index b97668d4d804486bcb122dafd5ae56b827115c8d..619b3830421054fb6442aa5729391702adaa5d80 100644 (file)
@@ -78,6 +78,7 @@ class HTSUserCreationForm(UserCreationForm):
 class HTSUserChangeForm(UserChangeForm):
     class Meta:
         model = HTSUser
+        fields = ("username",'first_name','last_name')
 
 class HTSUserOptions(UserAdmin):
     form = HTSUserChangeForm