From 1c13f50c61575b131d6c2cdd2f173b1e1ad051f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 27 Feb 2012 10:39:01 +0100 Subject: [PATCH] Add subproject --- trans/models.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/trans/models.py b/trans/models.py index dbd3fb7f7..8ff8e6100 100644 --- a/trans/models.py +++ b/trans/models.py @@ -8,4 +8,11 @@ class Project(models.Model): web = models.URLField() mail = models.EmailField() instructions = models.URLField() - gitrepo = models.CharField(max_length = 200) + +class SubProject(models.Model): + name = models.CharField(max_length = 100) + slug = models.SlugField(db_index = True) + project = models.ForeignKey(Project) + repo = models.CharField(max_length = 200) + branch = models.CharField(max_length = 50) + propagate = models.ForeignKey('self')