From 5c78ad746942cafa03ed4834eefac98832021558 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 8 Sep 2010 10:50:55 -0500 Subject: Add metadata to Arch table Add a column flagging whether this architecture is agnostic (e.g. 'any') or not. This will remove the hardcoded name checks we have all over the place and replace it with a boolean. Signed-off-by: Dan McGee --- main/models.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'main/models.py') diff --git a/main/models.py b/main/models.py index d357ef14..70ab4bd6 100644 --- a/main/models.py +++ b/main/models.py @@ -59,8 +59,12 @@ class Meta: class Arch(models.Model): id = models.AutoField(primary_key=True) name = models.CharField(max_length=255, unique=True) + agnostic = models.BooleanField(default=False, + help_text="Is this architecture non-platform specific?") + def __unicode__(self): return self.name + class Meta: db_table = 'arches' ordering = ['name'] @@ -78,6 +82,7 @@ class Repo(models.Model): def __unicode__(self): return self.name + class Meta: db_table = 'repos' ordering = ['name'] -- cgit v1.2.3-54-g00ecf