X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=blobdiff_plain;f=htsworkflow%2Ffrontend%2Fsamples%2Fmodels.py;h=cce961918138a1e7f57a1f300be3f3078d594159;hp=32d63a35d545fafc9f2f78ca295364db266d11a3;hb=e498a9dd4a3bf2e7cbe308e9b50c3210297423cf;hpb=c22c060d6a8a73b49de37f952d72e77f09aef199 diff --git a/htsworkflow/frontend/samples/models.py b/htsworkflow/frontend/samples/models.py index 32d63a3..cce9619 100644 --- a/htsworkflow/frontend/samples/models.py +++ b/htsworkflow/frontend/samples/models.py @@ -127,6 +127,7 @@ class LibraryType(models.Model): def __unicode__(self): return unicode(self.name) + class Library(models.Model): id = models.CharField(max_length=10, primary_key=True) library_name = models.CharField(max_length=100, unique=True) @@ -253,16 +254,20 @@ class Library(models.Model): else: tstr = 'not processed yet' return tstr aligned_reads.allow_tags = True - + def public(self): SITE_ROOT = '/' summary_url = self.get_absolute_url() return 'S' % (summary_url,) public.allow_tags = True - + @models.permalink def get_absolute_url(self): return ('htsworkflow.frontend.samples.views.library_to_flowcells', [str(self.id)]) + + + + class HTSUser(User): """