summaryrefslogtreecommitdiffstats
path: root/main/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-03-04 03:54:41 +0100
committerDan McGee <dan@archlinux.org>2010-03-06 22:36:20 +0100
commit96b4c52f6d536e5fc21389b65528f2b116aa74ca (patch)
treed9c08381d03a4ced81b449bdd9f17ab46f76e377 /main/models.py
parent05d0b8232e03ed223ab109d72d9cdf770818e2ed (diff)
downloadarchweb-96b4c52f6d536e5fc21389b65528f2b116aa74ca.tar.gz
archweb-96b4c52f6d536e5fc21389b65528f2b116aa74ca.tar.xz
Add a flag to the repo to indicate its 'testing' status
This will eventually lead into a cleanup where we don't do checks on the repo name all over the place like we currently do. There are two migrations involved here; one to add the column and one to deduce the correct value from the existing names of the repos. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main/models.py')
-rw-r--r--main/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/models.py b/main/models.py
index b8ca28f..abbe050 100644
--- a/main/models.py
+++ b/main/models.py
@@ -161,6 +161,7 @@ class Arch(models.Model):
class Repo(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=255,unique=True)
+ testing = models.BooleanField(default=False)
def __unicode__(self):
return self.name
class Meta: