From fcd22f8231ac4f872e5b8f4dd60c1477706366ef Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Sat, 22 Jan 2022 17:18:25 +0100 Subject: [PATCH] Set Django to 4.0.1, add DB migrations Now that we're somewhat Django4 compatible it's time to advertise our newfound skill! Not all functionality has been tested, but it is starting again. --- ...er_qso_ownno_alter_user_dncall_and_more.py | 65 +++++++++++++++++++ requirements.txt | 2 +- 2 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 contest/migrations/0021_alter_qso_otherno_alter_qso_ownno_alter_user_dncall_and_more.py diff --git a/contest/migrations/0021_alter_qso_otherno_alter_qso_ownno_alter_user_dncall_and_more.py b/contest/migrations/0021_alter_qso_otherno_alter_qso_ownno_alter_user_dncall_and_more.py new file mode 100644 index 0000000..0e96451 --- /dev/null +++ b/contest/migrations/0021_alter_qso_otherno_alter_qso_ownno_alter_user_dncall_and_more.py @@ -0,0 +1,65 @@ +# Generated by Django 4.0.1 on 2022-01-22 16:18 + +import django.contrib.auth.validators +import django.core.validators +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('contest', '0020_auto_20190122_2348'), + ] + + operations = [ + migrations.AlterField( + model_name='qso', + name='otherNo', + field=models.IntegerField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(1000000)], verbose_name='No-R'), + ), + migrations.AlterField( + model_name='qso', + name='ownNo', + field=models.IntegerField(validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(1000000)], verbose_name='No'), + ), + migrations.AlterField( + model_name='user', + name='dncall', + field=models.CharField(blank=True, default='', help_text='If you have a DN call that you will offer to SWLs please enter it here', max_length=16, verbose_name='DN-Call'), + ), + migrations.AlterField( + model_name='user', + name='extra2m70cm', + field=models.BooleanField(default=False, help_text='Will you bring an additional 2m/70cm TRX to lend to other participants?', verbose_name='Additional 2m/70cm TRX'), + ), + migrations.AlterField( + model_name='user', + name='first_name', + field=models.CharField(blank=True, max_length=150, verbose_name='first name'), + ), + migrations.AlterField( + model_name='user', + name='last_name', + field=models.CharField(blank=True, max_length=150, verbose_name='last name'), + ), + migrations.AlterField( + model_name='user', + name='qrv2m', + field=models.BooleanField(default=False, help_text='Will you be QRV on 2m during the contest?', verbose_name='QRV on 2m'), + ), + migrations.AlterField( + model_name='user', + name='qrv70cm', + field=models.BooleanField(default=False, help_text='Will you be QRV on 70cm during the contest?', verbose_name='QRV on 70cm'), + ), + migrations.AlterField( + model_name='user', + name='regTime', + field=models.DateTimeField(blank=True, default=None, null=True), + ), + migrations.AlterField( + model_name='user', + name='username', + field=models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username'), + ), + ] diff --git a/requirements.txt b/requirements.txt index 66fed1a..633b7d0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -Django<1.12 +Django==4.0.1 django-crispy-forms django-rest-framework django-filter