summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-08-20 21:18:18 -0500
committerDan McGee <dan@archlinux.org>2012-08-20 21:18:21 -0500
commit0ec1af27aeb2ff94128c84ad53f09045cd9ee6e3 (patch)
tree4601566ab799eba5d20f2e41f390b5d763bfbc1d /main
parent04066d190efddaf890d8573a3fbf4fd1706cb51f (diff)
Mark nullable fields as blank on package model
This helps when creating test packages through the Django admin. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main')
-rw-r--r--main/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/models.py b/main/models.py
index 202e7fa6..014464ff 100644
--- a/main/models.py
+++ b/main/models.py
@@ -105,10 +105,10 @@ class Package(models.Model):
last_update = models.DateTimeField(db_index=True)
files_last_update = models.DateTimeField(null=True, blank=True)
packager_str = models.CharField(max_length=255)
- packager = models.ForeignKey(User, null=True,
+ packager = models.ForeignKey(User, null=True, blank=True,
on_delete=models.SET_NULL)
pgp_signature = models.TextField(null=True, blank=True)
- flag_date = models.DateTimeField(null=True)
+ flag_date = models.DateTimeField(null=True, blank=True)
objects = PackageManager()