From 782f5cbe3247a1962df172acc0a294d11e98283d Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Sat, 1 Feb 2020 16:53:27 +0100 Subject: [PATCH] Allow regTime in user to be blank as well Without regTime being blank a user with regTime NULL cannot be edited via the admin interface --- contest/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contest/models.py b/contest/models.py index db38a56..8893efb 100644 --- a/contest/models.py +++ b/contest/models.py @@ -53,7 +53,7 @@ class User(AbstractUser): location = models.CharField(max_length=128, default="", blank=True) opName = models.CharField(max_length=128, default="", blank=True) - regTime = models.DateTimeField(null=True, default=None) + regTime = models.DateTimeField(null=True, default=None, blank=True) # because of cbr parsing bug, we sometimes have users who only have 70cm qsos # we ignore the band for them when checking QSOs