summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorEvangelos Foutras <foutrelis@gmail.com>2010-01-31 07:53:27 +0200
committerDan McGee <dan@archlinux.org>2010-01-31 13:44:03 -0600
commit09a3a08144fd14fcd905cdf3e86dcc240458040c (patch)
tree72a03516cf3fa888d57cdca5b1fb18717532849f /main
parent2c3c6cc2e1dc070395481f92f5499113b9e5a6bf (diff)
Adjust models and views for nullable maintainer
Signed-off-by: Evangelos Foutras <foutrelis@gmail.com> [Dan: made a few other small touchups] Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main')
-rw-r--r--main/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py
index 7a3496a0..98547a35 100644
--- a/main/models.py
+++ b/main/models.py
@@ -162,7 +162,7 @@ class Package(models.Model):
id = models.AutoField(primary_key=True)
repo = models.ForeignKey(Repo, related_name="packages")
arch = models.ForeignKey(Arch, related_name="packages")
- maintainer = models.ForeignKey(User, related_name="maintained_packages")
+ maintainer = models.ForeignKey(User, related_name="maintained_packages", null=True, blank=True)
needupdate = models.BooleanField(default=False)
pkgname = models.CharField(max_length=255)
pkgbase = models.CharField(max_length=255, null=True, blank=True)