From: Rami Rauch Date: Mon, 8 Sep 2008 21:12:49 +0000 (+0000) Subject: Removed all Antibody related fields from the Library search_fields list. The Library... X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=946872c5ed26615e322d483684c22129e72cbba1 Removed all Antibody related fields from the Library search_fields list. The Library search for some reason fails to retrieve these records that have NULL in Antibody FK value. --- diff --git a/htswfrontend/htswfrontend/fctracker/models.py b/htswfrontend/htswfrontend/fctracker/models.py index d3b2bb3..3dfd513 100644 --- a/htswfrontend/htswfrontend/fctracker/models.py +++ b/htswfrontend/htswfrontend/fctracker/models.py @@ -188,8 +188,7 @@ class Library(models.Model): save_as = True save_on_top = True ##search_fields = ['library_id','library_name','affiliations__name','affiliations__contact','made_by','made_for','antibody__antigene','antibody__catalog','antibody__antibodies','antibody__source','cell_line__cellline_name','library_species__scientific_name','library_species__common_name','library_species__use_genome_build'] - search_fields = ['library_id','library_name','antibody__antigene','antibody__catalog','antibody__antibodies\ -','antibody__source','cell_line__cellline_name','library_species__scientific_name','library_species__common_name','library_species__use_genome_build'] + search_fields = ['library_id','library_name','cell_line__cellline_name','library_species__scientific_name','library_species__common_name','library_species__use_genome_build'] list_display = ('affiliation','library_id', 'library_name','experiment_type','replicate','antibody_name','cell_line','made_by','creation_date') list_display_links = ('library_id', 'library_name') list_filter = ('experiment_type','affiliations','library_species','made_for', 'made_by','replicate')