src/hp/models.py
changeset 91 eb2aa2a469e2
parent 65 6289931858a7
equal deleted inserted replaced
90:a9d72bf0ebf0 91:eb2aa2a469e2
     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     content_title = models.CharField(max_length=1024, null=True, blank=True, verbose_name=_('content.title'))
    14     project_id = models.CharField(max_length=255, unique=False, verbose_name=_('project_id'), null=True, blank=True)
    15     project_id = models.CharField(max_length=255, unique=False, verbose_name=_('project_id'), null=True, blank=True)
    15     graph_id = models.CharField(max_length=1024, verbose_name=_('graph_id'))
    16     graph_id = models.CharField(max_length=1024, verbose_name=_('graph_id'))
    16     topic_id = models.CharField(max_length=1024, verbose_name=_('topic_id'))
    17     topic_id = models.CharField(max_length=1024, verbose_name=_('topic_id'))
    17     
    18     
    18     def __unicode__(self):
    19     def __unicode__(self):
    19         return u"%s->%s|%s" %(self.iri_id,self.graph_id, self.topic_id)
    20         return u"%s->%s|%s" %(self.content_title if self.content_title else self.iri_id,self.graph_id, self.topic_id)
    20 
    21 
    21 
    22