From c30c03312041c24c39b6a986882aae6189096c2f Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 26 Oct 2012 12:51:42 +0000 Subject: Add URL and SCM data to projects This allows us to display friendly links to the project website, web SCM UI and SCM URL. For example for the patchwork project these could be set to: web_url: http://jk.ozlabs.org/projects/patchwork/ scm_url: git://ozlabs.org/home/jk/git/patchwork webscm_url: http://git.ozlabs.org/?p=patchwork;a=tree Requires a DB schema upgrade Signed-off-by: Simo Sorce Signed-off-by: Jeremy Kerr --- apps/patchwork/models.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps') diff --git a/apps/patchwork/models.py b/apps/patchwork/models.py index bbfe827..86a5266 100644 --- a/apps/patchwork/models.py +++ b/apps/patchwork/models.py @@ -64,6 +64,9 @@ class Project(models.Model): name = models.CharField(max_length=255, unique=True) listid = models.CharField(max_length=255, unique=True) listemail = models.CharField(max_length=200) + web_url = models.CharField(max_length=2000, blank=True) + scm_url = models.CharField(max_length=2000, blank=True) + webscm_url = models.CharField(max_length=2000, blank=True) send_notifications = models.BooleanField() def __unicode__(self): -- cgit v1.2.3