Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
944600d8
Verified
Commit
944600d8
authored
Jul 04, 2018
by
Sébastiaan Versteeg
Browse files
Make phone number optional during member registration
parent
206ecb6b
Changes
2
Hide whitespace changes
Inline
Side-by-side
website/registrations/migrations/0008_auto_20180704_2309.py
0 → 100644
View file @
944600d8
# Generated by Django 2.0.2 on 2018-07-04 21:09
import
django.core.validators
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'registrations'
,
'0007_change_registration_status_completed'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'registration'
,
name
=
'phone_number'
,
field
=
models
.
CharField
(
blank
=
True
,
max_length
=
20
,
null
=
True
,
validators
=
[
django
.
core
.
validators
.
RegexValidator
(
message
=
'please enter a valid phone number'
,
regex
=
'^
\\
+?
\\
d+$'
)],
verbose_name
=
'phone number'
),
),
]
website/registrations/models.py
View file @
944600d8
...
...
@@ -164,7 +164,8 @@ class Registration(Entry):
regex
=
r
'^\+?\d+$'
,
message
=
_
(
'please enter a valid phone number'
),
)],
blank
=
False
,
blank
=
True
,
null
=
True
,
)
# ---- University information -----
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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