From 94fe9fc548b5437142ca31239f2663100079ad66 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 25 Aug 2010 14:04:23 -0500 Subject: Add more metadata to repo model Things like the flyspray project ID and SVN repo path should go here rather than being hardcoded in the code. Signed-off-by: Dan McGee --- main/models.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'main/models.py') diff --git a/main/models.py b/main/models.py index 21c49fe3..6a56a6b7 100644 --- a/main/models.py +++ b/main/models.py @@ -150,7 +150,12 @@ class Repo(models.Model): id = models.AutoField(primary_key=True) name = models.CharField(max_length=255,unique=True) testing = models.BooleanField(default=False, - help_text="Is this repo meant for package testing?") + help_text="Is this repo meant for package testing?") + bugs_project = models.SmallIntegerField(default=1, + help_text="Flyspray project ID for this repository.") + svn_root = models.CharField(max_length=64, + help_text="SVN root (e.g. path) for this repository.") + def __unicode__(self): return self.name class Meta: -- cgit v1.2.3-54-g00ecf