src/hp/models.py
changeset 65 6289931858a7
parent 41 b6010b3d6ea8
child 91 eb2aa2a469e2
equal deleted inserted replaced
64:78f174d908a0 65:6289931858a7
     9 from django.utils.translation import ugettext_lazy as _
     9 from django.utils.translation import ugettext_lazy as _
    10 
    10 
    11 class VideoKCRel(models.Model):
    11 class VideoKCRel(models.Model):
    12     
    12     
    13     iri_id = models.CharField(max_length=255, unique=True, verbose_name=_('content.iri_id'))
    13     iri_id = models.CharField(max_length=255, unique=True, verbose_name=_('content.iri_id'))
       
    14     project_id = models.CharField(max_length=255, unique=False, verbose_name=_('project_id'), null=True, blank=True)
    14     graph_id = models.CharField(max_length=1024, verbose_name=_('graph_id'))
    15     graph_id = models.CharField(max_length=1024, verbose_name=_('graph_id'))
    15     topic_id = models.CharField(max_length=1024, verbose_name=_('topic_id'))
    16     topic_id = models.CharField(max_length=1024, verbose_name=_('topic_id'))
    16     
    17     
    17     def __unicode__(self):
    18     def __unicode__(self):
    18         return u"%s->%s|%s" %(self.iri_id,self.graph_id, self.topic_id)
    19         return u"%s->%s|%s" %(self.iri_id,self.graph_id, self.topic_id)