src/hp/models.py
changeset 91 eb2aa2a469e2
parent 65 6289931858a7
--- a/src/hp/models.py	Mon Nov 26 23:58:04 2012 +0100
+++ b/src/hp/models.py	Tue Nov 27 01:48:15 2012 +0100
@@ -11,11 +11,12 @@
 class VideoKCRel(models.Model):
     
     iri_id = models.CharField(max_length=255, unique=True, verbose_name=_('content.iri_id'))
+    content_title = models.CharField(max_length=1024, null=True, blank=True, verbose_name=_('content.title'))
     project_id = models.CharField(max_length=255, unique=False, verbose_name=_('project_id'), null=True, blank=True)
     graph_id = models.CharField(max_length=1024, verbose_name=_('graph_id'))
     topic_id = models.CharField(max_length=1024, verbose_name=_('topic_id'))
     
     def __unicode__(self):
-        return u"%s->%s|%s" %(self.iri_id,self.graph_id, self.topic_id)
+        return u"%s->%s|%s" %(self.content_title if self.content_title else self.iri_id,self.graph_id, self.topic_id)