diff options
author | Evangelos Foutras <foutrelis@gmail.com> | 2010-01-31 06:53:27 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-01-31 20:44:03 +0100 |
commit | 09a3a08144fd14fcd905cdf3e86dcc240458040c (patch) | |
tree | 72a03516cf3fa888d57cdca5b1fb18717532849f /main | |
parent | 2c3c6cc2e1dc070395481f92f5499113b9e5a6bf (diff) | |
download | archweb-09a3a08144fd14fcd905cdf3e86dcc240458040c.tar.gz archweb-09a3a08144fd14fcd905cdf3e86dcc240458040c.tar.xz |
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.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py index 7a3496a..98547a3 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) |