From 6efb5905f789f814c6de570d26a168193bc6198d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 27 Feb 2012 10:46:12 +0100 Subject: [PATCH] Model for translation --- trans/models.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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)