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
This commit is contained in:
Sebastian Lohff 2020-02-01 16:53:27 +01:00
parent c41a30c66b
commit b0d7f9f2ec
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class User(AbstractUser):
location = models.CharField(max_length=128, default="", blank=True) location = models.CharField(max_length=128, default="", blank=True)
opName = 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 # because of cbr parsing bug, we sometimes have users who only have 70cm qsos
# we ignore the band for them when checking QSOs # we ignore the band for them when checking QSOs