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.
49 lines
2.0 KiB
49 lines
2.0 KiB
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.9.7 on 2016-07-29 12:30
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import django.utils.timezone
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('common', '0001_initial'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='PrintDocuments',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('file', models.FileField(upload_to='common/printdocuments/')),
|
|
],
|
|
options={
|
|
'verbose_name': 'Документы на распечатку',
|
|
'verbose_name_plural': 'Документы на распечатку',
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name='PrintOrder',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('sender', models.CharField(max_length=150)),
|
|
('phone', models.CharField(max_length=50)),
|
|
('address', models.CharField(max_length=255)),
|
|
('created', models.DateTimeField(default=django.utils.timezone.now)),
|
|
('shipping', models.CharField(choices=[('self_delivery', 'Самовывоз'), ('courier_delivery', 'Доставка курьером')], default='self_delivery', max_length=30)),
|
|
('text', models.TextField()),
|
|
],
|
|
options={
|
|
'verbose_name': 'Заявка на распечатку',
|
|
'verbose_name_plural': 'Заявки на распечатку',
|
|
},
|
|
),
|
|
migrations.AddField(
|
|
model_name='printdocuments',
|
|
name='printorder',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='print_documents', to='common.PrintOrder'),
|
|
),
|
|
]
|
|
|