Add subproject

This commit is contained in:
Michal Čihař 2012-02-27 10:39:01 +01:00
parent 4de362210f
commit 1c13f50c61

View File

@ -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')