1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
# Generated by Django 1.10.3 on 2016-11-18 03:46
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('django_celery_beat', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='SolarSchedule',
fields=[
('id', models.AutoField(
auto_created=True, primary_key=True,
serialize=False, verbose_name='ID')),
('event', models.CharField(
choices=[('dusk_nautical', 'dusk_nautical'),
('dawn_astronomical', 'dawn_astronomical'),
('dawn_nautical', 'dawn_nautical'),
('dawn_civil', 'dawn_civil'),
('sunset', 'sunset'),
('solar_noon', 'solar_noon'),
('dusk_astronomical', 'dusk_astronomical'),
('sunrise', 'sunrise'),
('dusk_civil', 'dusk_civil')],
max_length=24, verbose_name='event')),
('latitude', models.DecimalField(
decimal_places=6, max_digits=9, verbose_name='latitude')),
('longitude', models.DecimalField(
decimal_places=6, max_digits=9, verbose_name='latitude')),
],
options={
'ordering': ['event', 'latitude', 'longitude'],
'verbose_name': 'solar',
'verbose_name_plural': 'solars',
},
),
migrations.AddField(
model_name='periodictask',
name='solar',
field=models.ForeignKey(
blank=True, help_text='Use a solar schedule',
null=True, on_delete=django.db.models.deletion.CASCADE,
to='django_celery_beat.SolarSchedule', verbose_name='solar'),
),
]
|