Model for translation
This commit is contained in:
parent
69a0839b8e
commit
6efb5905f7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user