Some fields have to be able to be blank

This commit is contained in:
Sebastian Lohff 2017-01-20 17:28:14 +01:00 committed by root
parent cd176537f1
commit a97878f78e
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ from .validators import CallUsernameValidator
class Contest(models.Model):
name = models.CharField(max_length=20)
shortName = models.CharField(max_length=20, unique=True)
callQrg = models.ForeignKey("Frequency", null=True)
callQrg = models.ForeignKey("Frequency", null=True, blank=True)
def __str__(self):
return self.name
@ -41,7 +41,7 @@ class Frequency(models.Model):
qrg = models.DecimalField(max_digits=7, decimal_places=3)
band = models.ForeignKey(Band)
note = models.CharField(max_length=50)
note = models.CharField(max_length=50, blank=True)
def __str__(self):
return "Channel %s: %s MHz" % (self.channel, self.qrg)