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.
29 lines
1.2 KiB
29 lines
1.2 KiB
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.9 on 2017-04-11 10:43
|
|
from __future__ import unicode_literals
|
|
|
|
import django.core.validators
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import re
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('abonapp', '0014_auto_20170330_1452'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='PassportInfo',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('series', models.CharField(max_length=4, validators=[django.core.validators.RegexValidator(re.compile('^-?\\d+\\Z', 32), code='invalid', message='Enter a valid integer.')])),
|
|
('number', models.CharField(max_length=6, validators=[django.core.validators.RegexValidator(re.compile('^-?\\d+\\Z', 32), code='invalid', message='Enter a valid integer.')])),
|
|
('distributor', models.CharField(max_length=64)),
|
|
('date_of_acceptance', models.DateField()),
|
|
('abon', models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='abonapp.Abon')),
|
|
],
|
|
),
|
|
]
|