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.
 
 
 
 
 
 

30 lines
1.3 KiB

# Generated by Django 2.0.2 on 2018-02-20 14:21
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='SchoolSchedule',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('weekday', models.PositiveSmallIntegerField(choices=[(1, 'понедельник'), (2, 'вторник'), (3, 'среда'), (4, 'четверг'), (5, 'пятница'), (6, 'суббота'), (7, 'воскресенье')], verbose_name='День недели')),
('title', models.CharField(db_index=True, default='', max_length=100, verbose_name='Заголовок')),
('description', models.TextField(verbose_name='Описание')),
('materials', models.TextField(verbose_name='Материалы')),
('month_price', models.DecimalField(decimal_places=2, default=0, max_digits=8, verbose_name='Цена')),
],
options={
'verbose_name': 'Рассписание',
'verbose_name_plural': 'Рассписания',
'ordering': ('weekday',),
},
),
]