Verified Commit 9b6302b0 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Make phone number optional during member registration

parent 2092340a
# 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'),
),
]
......@@ -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 -----
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment