diff --git a/trans/models.py b/trans/models.py index ff2986b39..dd7cfda85 100644 --- a/trans/models.py +++ b/trans/models.py @@ -1,6 +1,5 @@ from django.db import models - -# Create your models here. +from lang.models import Language class Project(models.Model): name = models.CharField(max_length = 100) @@ -15,3 +14,10 @@ class SubProject(models.Model): project = models.ForeignKey(Project) repo = models.CharField(max_length = 200) 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)