This commit is contained in:
j 2010-11-28 17:31:53 +01:00
commit 38d432bdd9
4 changed files with 10 additions and 3 deletions

View file

@ -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)