summaryrefslogtreecommitdiff
path: root/main/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-08-25 14:04:23 -0500
committerDan McGee <dan@archlinux.org>2010-08-25 14:04:23 -0500
commit94fe9fc548b5437142ca31239f2663100079ad66 (patch)
treec6f97c83083adf5a321d75d900039cd8e9561b42 /main/models.py
parentae5483c230d08c65d91eb7cece106b4f13a56232 (diff)
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 <dan@archlinux.org>
Diffstat (limited to 'main/models.py')
-rw-r--r--main/models.py7
1 files changed, 6 insertions, 1 deletions
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: