Loading contest/forms.py +1 −1 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ from .validators import CallUsernameValidator, CallLogValidator class CustomUserCreationForm(UserCreationForm): class Meta: model = User fields = ("username",) fields = ("username", "dncall", "qrv2m", "qrv70cm", "extra2m70cm") username = forms.CharField(max_length=50, validators=[CallUsernameValidator()]) Loading contest/models.py +9 −3 Original line number Diff line number Diff line Loading @@ -61,9 +61,15 @@ class User(AbstractUser): # extra profile stuff so DL7BST can sleep well without his doodles editedProfile = models.BooleanField(default=False) dncall = models.CharField(max_length=16, default='', blank=True) qrv2m = models.BooleanField(default=False) qrv70cm = models.BooleanField(default=False) dncall = models.CharField(max_length=16, default='', blank=True, verbose_name="DN-Call", help_text="If you have a DN call that you will offer to SWLs please enter it here") qrv2m = models.BooleanField(default=False, verbose_name="QRV on 2m", help_text="Will you be QRV on 2m during the contest?") qrv70cm = models.BooleanField(default=False, verbose_name="QRV on 70cm", help_text="Will you be QRV on 70cm during the contest?") extra2m70cm = models.BooleanField(default=False) def __init__(self, *args, **kwargs): Loading Loading
contest/forms.py +1 −1 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ from .validators import CallUsernameValidator, CallLogValidator class CustomUserCreationForm(UserCreationForm): class Meta: model = User fields = ("username",) fields = ("username", "dncall", "qrv2m", "qrv70cm", "extra2m70cm") username = forms.CharField(max_length=50, validators=[CallUsernameValidator()]) Loading
contest/models.py +9 −3 Original line number Diff line number Diff line Loading @@ -61,9 +61,15 @@ class User(AbstractUser): # extra profile stuff so DL7BST can sleep well without his doodles editedProfile = models.BooleanField(default=False) dncall = models.CharField(max_length=16, default='', blank=True) qrv2m = models.BooleanField(default=False) qrv70cm = models.BooleanField(default=False) dncall = models.CharField(max_length=16, default='', blank=True, verbose_name="DN-Call", help_text="If you have a DN call that you will offer to SWLs please enter it here") qrv2m = models.BooleanField(default=False, verbose_name="QRV on 2m", help_text="Will you be QRV on 2m during the contest?") qrv70cm = models.BooleanField(default=False, verbose_name="QRV on 70cm", help_text="Will you be QRV on 70cm during the contest?") extra2m70cm = models.BooleanField(default=False) def __init__(self, *args, **kwargs): Loading