From 1ad590d8b33820a8c62f952b776c7677922eb1d1 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Tue, 24 Feb 2009 18:42:17 +0000 Subject: [PATCH] simplify library admin index view --- htsworkflow/frontend/samples/admin.py | 22 ++++++++++++---------- htsworkflow/frontend/samples/models.py | 4 +++- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/htsworkflow/frontend/samples/admin.py b/htsworkflow/frontend/samples/admin.py index 62e43fb..e237ea9 100644 --- a/htsworkflow/frontend/samples/admin.py +++ b/htsworkflow/frontend/samples/admin.py @@ -27,25 +27,27 @@ class LibraryOptions(admin.ModelAdmin): ) list_display = ( 'library_id', - 'aligned_reads', - 'DataRun', + #'aligned_reads', + #'DataRun', 'library_name', 'experiment_type', - 'organism', - 'antibody_name', - 'cell_line', - 'libtags', - 'made_for', + #'organism', + #'antibody_name', + #'cell_line', + #'libtags', + #'made_for', + 'affiliation', 'made_by', - 'stopping_point', + 'undiluted_concentration', 'creation_date', - 'condition', + #'condition', ) list_filter = ( 'experiment_type', 'library_species', 'tags', - 'made_for', + #'made_for', + 'affiliations', 'made_by', 'antibody', 'cell_line', diff --git a/htsworkflow/frontend/samples/models.py b/htsworkflow/frontend/samples/models.py index 16ef011..914cb00 100644 --- a/htsworkflow/frontend/samples/models.py +++ b/htsworkflow/frontend/samples/models.py @@ -153,7 +153,9 @@ class Library(models.Model): stopping_point = models.CharField(max_length=25, choices=PROTOCOL_END_POINTS, default='Done') amplified_from_sample = models.ForeignKey('self', blank=True, null=True) - undiluted_concentration = models.DecimalField("Undiluted concentration (ng/ul)", max_digits=5, decimal_places=2, default=0, blank=True, null=True) + undiluted_concentration = models.DecimalField("Concentration", + max_digits=5, decimal_places=2, default=0, blank=True, null=True, + help_text="Undiluted concentration (ng/ul)") successful_pM = models.DecimalField(max_digits=5, decimal_places=2, blank=True, null=True) ten_nM_dilution = models.BooleanField() avg_lib_size = models.IntegerField(default=225, blank=True, null=True) -- 2.30.2