]> git.ozlabs.org Git - patchwork/blobdiff - apps/patchwork/models.py
pwclient: Add command for printing patch info
[patchwork] / apps / patchwork / models.py
index 67c69ffc3b30587a953a4e4d8f65692b0bd9f187..86a5266cff2d2177f682c57e6fcea8897b616b66 100644 (file)
@@ -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):
@@ -180,7 +183,7 @@ class HashField(models.CharField):
         kwargs['max_length'] = self.n_bytes
         super(HashField, self).__init__(*args, **kwargs)
 
-    def db_type(self):
+    def db_type(self, connection=None):
         return 'char(%d)' % self.n_bytes
 
 class PatchMbox(MIMENonMultipart):