Archived
39 lines
1.6 KiB
Python
39 lines
1.6 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.10 on 2016-08-04 21:57
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
import django_extensions.db.fields
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Slide',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('created', django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, verbose_name='created')),
|
|
('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name='modified')),
|
|
('status', models.IntegerField(choices=[(0, 'Inactive'), (1, 'Active')], default=1, verbose_name='status')),
|
|
('activate_date', models.DateTimeField(blank=True, help_text='keep empty for an immediate activation', null=True)),
|
|
('deactivate_date', models.DateTimeField(blank=True, help_text='keep empty for indefinite activation', null=True)),
|
|
('url', models.URLField()),
|
|
('title', models.CharField(blank=True, max_length=254)),
|
|
('start', models.DateField(blank=True, null=True)),
|
|
('stop', models.DateField(blank=True, null=True)),
|
|
('order', models.PositiveIntegerField(default=0)),
|
|
],
|
|
options={
|
|
'ordering': ('-modified', '-created'),
|
|
'get_latest_by': 'modified',
|
|
'abstract': False,
|
|
},
|
|
),
|
|
]
|