You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.0 KiB
28 lines
1.0 KiB
# -*- coding: utf-8 -*- |
|
# Generated by Django 1.11.1 on 2017-05-27 02:53 |
|
from __future__ import unicode_literals |
|
|
|
from django.conf import settings |
|
import django.core.validators |
|
from django.db import migrations, models |
|
import django.db.models.deletion |
|
|
|
|
|
class Migration(migrations.Migration): |
|
|
|
initial = True |
|
|
|
dependencies = [ |
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL), |
|
] |
|
|
|
operations = [ |
|
migrations.CreateModel( |
|
name='UserInfo', |
|
fields=[ |
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|
('phone_number', models.CharField(blank=True, max_length=16, validators=[django.core.validators.RegexValidator(message="Phone number must be entered in the format: '+999999999'. Up to 15 digits allowed.", regex='^\\+?1?\\d{9,15}$')])), |
|
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), |
|
], |
|
), |
|
]
|
|
|