Skip to content
GitLab
Explore
Sign in
Commits on Source (2)
Add missing db migrations
· a58a1598
Sebastian Lohff (DL7SBA)
authored
Jan 23, 2019
a58a1598
Missing DB fields for user questionaire
· 8cc6c3cb
Sebastian Lohff (DL7SBA)
authored
Jan 23, 2019
8cc6c3cb
Show whitespace changes
Inline
Side-by-side
contest/migrations/0019_auto_20190122_2049.py
0 → 100644
View file @
8cc6c3cb
# -*- coding: utf-8 -*-
# Generated by Django 1.11.18 on 2019-01-22 20:49
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'
contest
'
,
'
0018_auto_20170128_1639
'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'
user
'
,
name
=
'
ignoreBand
'
,
field
=
models
.
BooleanField
(
default
=
False
),
),
migrations
.
AlterField
(
model_name
=
'
qso
'
,
name
=
'
ownNo
'
,
field
=
models
.
IntegerField
(
verbose_name
=
'
No
'
),
),
]
contest/migrations/0020_auto_20190122_2348.py
0 → 100644
View file @
8cc6c3cb
# -*- 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
),
),
]
contest/models.py
View file @
8cc6c3cb
...
...
@@ -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
()]
...
...