From 8cc6c3cbffdb137a2c15986aa25d1e3bc1050c65 Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Wed, 23 Jan 2019 00:50:51 +0100 Subject: [PATCH] Missing DB fields for user questionaire --- contest/migrations/0020_auto_20190122_2348.py | 40 +++++++++++++++++++ contest/models.py | 7 ++++ 2 files changed, 47 insertions(+) create mode 100644 contest/migrations/0020_auto_20190122_2348.py diff --git a/contest/migrations/0020_auto_20190122_2348.py b/contest/migrations/0020_auto_20190122_2348.py new file mode 100644 index 0000000..cb882b5 --- /dev/null +++ b/contest/migrations/0020_auto_20190122_2348.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.18 on 2019-01-22 23:48 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('contest', '0019_auto_20190122_2049'), + ] + + operations = [ + migrations.AddField( + model_name='user', + name='dncall', + field=models.CharField(blank=True, default='', max_length=16), + ), + migrations.AddField( + model_name='user', + name='editedProfile', + field=models.BooleanField(default=False), + ), + migrations.AddField( + model_name='user', + name='extra2m70cm', + field=models.BooleanField(default=False), + ), + migrations.AddField( + model_name='user', + name='qrv2m', + field=models.BooleanField(default=False), + ), + migrations.AddField( + model_name='user', + name='qrv70cm', + field=models.BooleanField(default=False), + ), + ] diff --git a/contest/models.py b/contest/models.py index 73f45ae..201df00 100644 --- a/contest/models.py +++ b/contest/models.py @@ -59,6 +59,13 @@ class User(AbstractUser): # we ignore the band for them when checking QSOs ignoreBand = models.BooleanField(default=False) + # 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) + extra2m70cm = models.BooleanField(default=False) + def __init__(self, *args, **kwargs): super(User, self).__init__(*args, **kwargs) self._meta.get_field("username").validators = [CallUsernameValidator()]