diff options
author | Dan McGee <dan@archlinux.org> | 2010-03-27 16:39:01 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-03-27 18:09:42 -0500 |
commit | e317cf560aeb02c38b97193472f31a0caf92ce16 (patch) | |
tree | 74775ef8e60222513ef1ef84587a7b830022aa24 /main/models.py | |
parent | c0633aa76f7e5fbe90db35fcf3dd74e2cc9ded24 (diff) |
Make pkgbase non-null and indexed
Now that we always populate it, this change will make it a lot easier to use
when relating to other tables, such as our maintainer relations.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main/models.py')
-rw-r--r-- | main/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py index 739d5673..309d6b67 100644 --- a/main/models.py +++ b/main/models.py @@ -178,7 +178,7 @@ class Package(models.Model): arch = models.ForeignKey(Arch, related_name="packages") needupdate = models.BooleanField(default=False) pkgname = models.CharField(max_length=255, db_index=True) - pkgbase = models.CharField(max_length=255, null=True, blank=True) + pkgbase = models.CharField(max_length=255, db_index=True) pkgver = models.CharField(max_length=255) pkgrel = models.CharField(max_length=255) pkgdesc = models.CharField(max_length=255) |