equal
deleted
inserted
replaced
|
1 # -*- coding: utf-8 -*- |
|
2 ''' |
|
3 Created on Nov 13, 2012 |
|
4 |
|
5 @author: ymh |
|
6 ''' |
|
7 |
|
8 from django.db import models |
|
9 from django.utils.translation import ugettext_lazy as _ |
|
10 |
|
11 class VideoKCRel(models.Model): |
|
12 |
|
13 iri_id = models.CharField(max_length=255, unique=True, verbose_name=_('content.iri_id')) |
|
14 graph_id = models.CharField(max_length=1024, verbose_name=_('graph_id')) |
|
15 topic_id = models.CharField(max_length=1024, verbose_name=_('topic_id')) |
|
16 |
|
17 def __unicode__(self): |
|
18 return u"%s->%s|%s" %(self.iri_id,self.graph_id, self.topic_id) |
|
19 |
|
20 |