Model for translation

This commit is contained in:
Michal Čihař 2012-02-27 10:46:12 +01:00
parent 69a0839b8e
commit 6efb5905f7

View File

@ -1,6 +1,5 @@
from django.db import models from django.db import models
from lang.models import Language
# Create your models here.
class Project(models.Model): class Project(models.Model):
name = models.CharField(max_length = 100) name = models.CharField(max_length = 100)
@ -15,3 +14,10 @@ class SubProject(models.Model):
project = models.ForeignKey(Project) project = models.ForeignKey(Project)
repo = models.CharField(max_length = 200) repo = models.CharField(max_length = 200)
branch = models.CharField(max_length = 50) branch = models.CharField(max_length = 50)
class Translation(models.Model):
subproject = models.ForeignKey(SubProject)
language = models.ForeignKey(Language)
translated = models.FloatField()
revision = models.CharField(max_length = 40)
filename = models.CharField(max_length = 200)