From 34f14c58a09f7a88d29545c63f25d672f6135070 Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Thu, 26 Jan 2017 21:15:30 +0100 Subject: [PATCH] Changed logform names to conform with contestlog pdf --- contest/forms.py | 2 +- contest/models.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contest/forms.py b/contest/forms.py index 75f9e27..c01838b 100644 --- a/contest/forms.py +++ b/contest/forms.py @@ -60,7 +60,7 @@ class UpdateCategoryForm(forms.Form): class QSOForm(forms.ModelForm): class Meta: model = QSO - fields = ["ownNo", "band", "call", "reportTX", "reportRX", "otherNo", "refStr", "remarks"] + fields = ["ownNo", "band", "call", "reportTX", "reportRX", "refStr", "otherNo", "remarks"] def __init__(self, user, *args, **kwargs): super(QSOForm, self).__init__(*args, **kwargs) diff --git a/contest/models.py b/contest/models.py index d8192cc..a4f5ec9 100644 --- a/contest/models.py +++ b/contest/models.py @@ -92,8 +92,8 @@ class QSO(models.Model): reportTX = models.CharField(max_length=7, default=59, verbose_name='RST-S', validators=[reportValidator]) reportRX = models.CharField(max_length=7, default=59, verbose_name='RST-R', validators=[reportValidator]) - ownNo = models.IntegerField(verbose_name='Nr-S') - otherNo = models.IntegerField(verbose_name='Nr-R') + ownNo = models.IntegerField(verbose_name='No-S') + otherNo = models.IntegerField(verbose_name='No-R') refStr = models.CharField(max_length=20, verbose_name="EXC") ref = models.ForeignKey(Reference, models.SET_NULL, null=True, blank=True)