From 755d9d05d6d76c27570b6bb9d2af0f2a7bc5eaf6 Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Fri, 27 Jan 2017 15:46:07 +0100 Subject: [PATCH] Changed RST labels to RS --- contest/migrations/0016_auto_20170127_1154.py | 26 +++++++++++++++++++ contest/models.py | 4 +-- 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 contest/migrations/0016_auto_20170127_1154.py diff --git a/contest/migrations/0016_auto_20170127_1154.py b/contest/migrations/0016_auto_20170127_1154.py new file mode 100644 index 0000000..39f9234 --- /dev/null +++ b/contest/migrations/0016_auto_20170127_1154.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.3 on 2017-01-27 11:54 +from __future__ import unicode_literals + +import django.core.validators +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('contest', '0015_auto_20170126_2016'), + ] + + operations = [ + migrations.AlterField( + model_name='qso', + name='reportRX', + field=models.CharField(default=59, max_length=7, validators=[django.core.validators.RegexValidator('[1-5][1-9]')], verbose_name='RS-R'), + ), + migrations.AlterField( + model_name='qso', + name='reportTX', + field=models.CharField(default=59, max_length=7, validators=[django.core.validators.RegexValidator('[1-5][1-9]')], verbose_name='RS-S'), + ), + ] diff --git a/contest/models.py b/contest/models.py index ed8dd71..43690bf 100644 --- a/contest/models.py +++ b/contest/models.py @@ -89,8 +89,8 @@ class QSO(models.Model): callRef = models.ForeignKey(User, models.SET_NULL, related_name='qsoref', null=True, blank=True, default=None) band = models.ForeignKey(Band) - 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]) + reportTX = models.CharField(max_length=7, default=59, verbose_name='RS-S', validators=[reportValidator]) + reportRX = models.CharField(max_length=7, default=59, verbose_name='RS-R', validators=[reportValidator]) ownNo = models.IntegerField(verbose_name='No-S') otherNo = models.IntegerField(verbose_name='No-R', null=True, blank=True)