12 changed files with 137 additions and 50 deletions
-
1abonapp/admin.py
-
16abonapp/forms.py
-
15abonapp/locale/ru/LC_MESSAGES/django.po
-
21abonapp/migrations/0015_auto_20170410_1737.py
-
35abonapp/migrations/0015_passportinfo.py
-
11abonapp/models.py
-
2abonapp/templates/abonapp/group_tariffs.html
-
26abonapp/templates/abonapp/passport_view.html
-
2abonapp/urls_abon.py
-
36abonapp/views.py
-
12searchapp/views.py
-
10taskapp/locale/ru/LC_MESSAGES/django.po
@ -1,21 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.9 on 2017-04-10 14:37 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [ |
|
||||
('abonapp', '0014_auto_20170330_1452'), |
|
||||
] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name='abon', |
|
||||
name='opt82', |
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='abonapp.Opt82'), |
|
||||
), |
|
||||
] |
|
||||
@ -0,0 +1,35 @@ |
|||||
|
# -*- 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')), |
||||
|
], |
||||
|
), |
||||
|
migrations.AlterField( |
||||
|
model_name='abon', |
||||
|
name='opt82', |
||||
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, |
||||
|
to='abonapp.Opt82'), |
||||
|
) |
||||
|
] |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue