layer
This commit is contained in:
parent
da213d1745
commit
38d432bdd9
4 changed files with 10 additions and 3 deletions
|
|
@ -56,6 +56,9 @@ class Layer(models.Model):
|
|||
def json(self):
|
||||
return {'id': self.name, 'title': self.title, 'type': self.type}
|
||||
|
||||
def __unicode__(self):
|
||||
return self.title
|
||||
|
||||
class Annotation(models.Model):
|
||||
#FIXME: here having a item,start index would be good
|
||||
created = models.DateTimeField(auto_now_add=True)
|
||||
|
|
@ -78,3 +81,6 @@ class Annotation(models.Model):
|
|||
return True
|
||||
return False
|
||||
|
||||
def __unicode__(self):
|
||||
return "%s/%s-%s" %(self.item, self.start, self.stop)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue