Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sebastian Lohff (DL7SBA)
cqtu
Commits
8cc6c3cb
Commit
8cc6c3cb
authored
Jan 23, 2019
by
Sebastian Lohff (DL7SBA)
Browse files
Missing DB fields for user questionaire
parent
a58a1598
Pipeline
#25
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
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
()]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment