1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- # -*- coding: utf-8 -*-
- # Generated by Django 1.10.5 on 2017-02-09 16:05
- from __future__ import unicode_literals
- from django.db import migrations, models
- import django.db.models.deletion
- import modelcluster.fields
- class Migration(migrations.Migration):
- initial = True
- dependencies = [
- ('wagtailimages', '0017_reduce_focal_point_key_max_length'),
- ('wagtailcore', '0032_add_bulk_delete_page_permission'),
- ]
- operations = [
- migrations.CreateModel(
- name='LocationOperatingHours',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('sort_order', models.IntegerField(blank=True, editable=False, null=True)),
- ('day', models.CharField(choices=[('MON', 'MON'), ('TUE', 'TUE'), ('WED', 'WED'), ('THU', 'THU'), ('FRI', 'FRI'), ('SAT', 'SAT'), ('SUN', 'SUN')], default='MON', max_length=3)),
- ('opening_time', models.TimeField()),
- ('closing_time', models.TimeField()),
- ],
- options={
- 'abstract': False,
- 'ordering': ['sort_order'],
- },
- ),
- migrations.CreateModel(
- name='LocationPage',
- fields=[
- ('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.Page')),
- ('address', models.TextField()),
- ('lat_long', models.CharField(max_length=36)),
- ('image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image')),
- ],
- options={
- 'abstract': False,
- },
- bases=('wagtailcore.page',),
- ),
- migrations.CreateModel(
- name='LocationsLandingPage',
- fields=[
- ('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.Page')),
- ],
- options={
- 'abstract': False,
- },
- bases=('wagtailcore.page',),
- ),
- migrations.AddField(
- model_name='locationoperatinghours',
- name='location',
- field=modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='hours_of_operation', to='locations.LocationPage'),
- ),
- ]
|