summaryrefslogtreecommitdiff
path: root/main/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-05-24 10:57:17 -0500
committerDan McGee <dan@archlinux.org>2010-05-24 10:57:17 -0500
commit5adceb6586afcac163b1abf9fb6f2d0f1b151b9a (patch)
treee62069f0b0b1d649bf5470ae2d6db11919e0723f /main/models.py
parenta1f7520b8cf35e134aed6b8d7933e2ccf82a2b50 (diff)
Fix null field issues exposed by Django 1.1.2
Apparently Django 1.1.1 let null fields pass right through but this now causes reporead to blow up in 1.1.2. Fix the issue and get things working again by allowing nulls where it probably makes sense and including a migration to fix the issue, which for the real database will be a no-op. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main/models.py')
-rw-r--r--main/models.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/models.py b/main/models.py
index 1f938cc5..52e68958 100644
--- a/main/models.py
+++ b/main/models.py
@@ -160,14 +160,14 @@ class Package(models.Model):
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)
- url = models.CharField(max_length=255)
+ pkgdesc = models.CharField(max_length=255, null=True)
+ url = models.CharField(max_length=255, null=True)
compressed_size = models.PositiveIntegerField(null=True)
installed_size = models.PositiveIntegerField(null=True)
build_date = models.DateTimeField(null=True)
last_update = models.DateTimeField(null=True, blank=True)
files_last_update = models.DateTimeField(null=True, blank=True)
- license = models.CharField(max_length=255)
+ license = models.CharField(max_length=255, null=True)
objects = PackageManager()
class Meta:
db_table = 'packages'