src/ldt/ldt/text/models.py
changeset 731 aba6c30b6d2a
parent 718 5e27a39d3742
child 1191 b6e0b1811723
equal deleted inserted replaced
727:0e91e924b945 731:aba6c30b6d2a
     9 def Property(func):
     9 def Property(func):
    10     return property(**func()) 
    10     return property(**func()) 
    11 
    11 
    12 
    12 
    13 class Annotation(models.Model):
    13 class Annotation(models.Model):
    14     external_id = models.CharField(max_length=1024, null=False, unique=True, default=generate_uuid, verbose_name=_('annotation.external_id'))
    14     external_id = models.CharField(max_length=255, null=False, unique=True, default=generate_uuid, verbose_name=_('annotation.external_id'))
    15     uri = models.CharField(max_length=1024, verbose_name=_('annotation.uri'))
    15     uri = models.CharField(max_length=1024, verbose_name=_('annotation.uri'))
    16     tags_field = tagging.fields.TagField(max_length=2048, null=True, blank=True, verbose_name=_('annotation.tags'))
    16     tags_field = tagging.fields.TagField(max_length=2048, null=True, blank=True, verbose_name=_('annotation.tags'))
    17     title = models.CharField(max_length=1024, null=True, blank=True, verbose_name=_('annotation.title'))
    17     title = models.CharField(max_length=1024, null=True, blank=True, verbose_name=_('annotation.title'))
    18     description = models.TextField(null=True, blank=True, verbose_name=_('annotation.description'))
    18     description = models.TextField(null=True, blank=True, verbose_name=_('annotation.description'))
    19     text = models.TextField(null=True, blank=True, verbose_name=_('annotation.text'))
    19     text = models.TextField(null=True, blank=True, verbose_name=_('annotation.text'))