Commit 6efb5905 authored by Michal Čihař's avatar Michal Čihař

Model for translation

parent 69a0839b
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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment