Changed name= to verbose_name= for LibraryType.
authorDiane Trout <diane@caltech.edu>
Wed, 28 Nov 2012 19:34:40 +0000 (11:34 -0800)
committerDiane Trout <diane@caltech.edu>
Wed, 28 Nov 2012 19:34:40 +0000 (11:34 -0800)
Strangely Django <1.4 didn't notice the error when importing
the fixtures. It was trying to use the name "Adapter Type"
as the database name, instead of the actual column name "name"
for the LibraryType table.

htsworkflow/frontend/samples/models.py

index 3e56c2d4f069251c9cf4e0a9c57cf722c30d33d2..5126bb504eb21f723e5845489c8085fdfbbb35a0 100644 (file)
@@ -129,7 +129,7 @@ class Affiliation(models.Model):
 
 class LibraryType(models.Model):
   name = models.CharField(max_length=255, unique=True,
-                          name="Adapter Type")
+                          verbose_name="Adapter Type")
   is_paired_end = models.BooleanField(default=True,
                     help_text="can you do a paired end run with this adapter")
   can_multiplex = models.BooleanField(default=True,