diff options
author | Dan McGee <dan@archlinux.org> | 2012-08-21 04:18:18 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-08-21 04:18:21 +0200 |
commit | 0ec1af27aeb2ff94128c84ad53f09045cd9ee6e3 (patch) | |
tree | 4601566ab799eba5d20f2e41f390b5d763bfbc1d /main | |
parent | 04066d190efddaf890d8573a3fbf4fd1706cb51f (diff) | |
download | archweb-0ec1af27aeb2ff94128c84ad53f09045cd9ee6e3.tar.gz archweb-0ec1af27aeb2ff94128c84ad53f09045cd9ee6e3.tar.xz |
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.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/models.py b/main/models.py index 202e7fa..014464f 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() |