From 53a5a342ce2b08d948bf6011b120fbc64631b4d9 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Tue, 10 Dec 2013 15:13:51 -0800 Subject: [PATCH] With 1.6 boolean field changed to default Null, so to be backwards compatible set default false --- htsworkflow/frontend/inventory/models.py | 2 +- htsworkflow/frontend/samples/models.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htsworkflow/frontend/inventory/models.py b/htsworkflow/frontend/inventory/models.py index 46b37ec..e729fe4 100644 --- a/htsworkflow/frontend/inventory/models.py +++ b/htsworkflow/frontend/inventory/models.py @@ -157,7 +157,7 @@ class PrinterTemplate(models.Model): item_type = models.ForeignKey(ItemType) printer = models.ForeignKey(Printer) - default = models.BooleanField() + default = models.BooleanField(default=False) template = models.TextField() diff --git a/htsworkflow/frontend/samples/models.py b/htsworkflow/frontend/samples/models.py index 5126bb5..d7c70c2 100644 --- a/htsworkflow/frontend/samples/models.py +++ b/htsworkflow/frontend/samples/models.py @@ -156,7 +156,7 @@ class Library(models.Model): id = models.CharField(max_length=10, primary_key=True) library_name = models.CharField(max_length=100, unique=True) library_species = models.ForeignKey(Species) - hidden = models.BooleanField() + hidden = models.BooleanField(default=False) account_number = models.CharField(max_length=100, null=True, blank=True) cell_line = models.ForeignKey(Cellline, blank=True, null=True, verbose_name="Background") @@ -207,7 +207,7 @@ class Library(models.Model): # note \u00b5 is the micro symbol in unicode successful_pM = models.DecimalField(max_digits=9, decimal_places=1, blank=True, null=True) - ten_nM_dilution = models.BooleanField() + ten_nM_dilution = models.BooleanField(default=False) gel_cut_size = models.IntegerField(default=225, blank=True, null=True) insert_size = models.IntegerField(blank=True, null=True) notes = models.TextField(blank=True) -- 2.30.2