Skip to content

Commit

Permalink
show sequences code and genecode
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosp420 committed May 26, 2015
1 parent ba5c40e commit fe292cc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions voseq/public_interface/models.py
Expand Up @@ -165,6 +165,9 @@ class Vouchers(models.Model):
class Meta:
verbose_name_plural = "Vouchers"

def __str__(self):
return self.code


class Sequences(models.Model):
code = models.ForeignKey(Vouchers, help_text='This is your voucher code.')
Expand All @@ -190,6 +193,9 @@ def save(self, *args, **kwargs):
# self.total_number_bp = len(self.sequences)
super(Sequences, self).save(*args, **kwargs)

def __str__(self):
return self.code.code + ' ' + self.gene_code


class Primers(models.Model):
for_sequence = models.ForeignKey(Sequences, help_text='relation to Sequences table with reference '
Expand Down

0 comments on commit fe292cc

Please sign in to comment.