src/hp/models.py
author ymh <ymh.work@gmail.com>
Mon, 26 Nov 2012 22:10:07 +0100
changeset 88 49ae2a2f2641
parent 65 6289931858a7
child 91 eb2aa2a469e2
permissions -rw-r--r--
update mo translation files

# -*- coding: utf-8 -*-
'''
Created on Nov 13, 2012

@author: ymh
'''

from django.db import models
from django.utils.translation import ugettext_lazy as _

class VideoKCRel(models.Model):
    
    iri_id = models.CharField(max_length=255, unique=True, verbose_name=_('content.iri_id'))
    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)