annotate countdown/migrations/0001_initial.py @ 1096:d9cd3180c12c

More GCalendar V3 conversion in progress. Built a brand new post editor. It is hardcoded into GCalendar right now. We will make it more general in the future.
author Brian Neal <bgneal@gmail.com>
date Tue, 14 Jun 2016 21:16:09 -0500
parents ecb8f07d937b
children
rev   line source
bgneal@1081 1 # -*- coding: utf-8 -*-
bgneal@1081 2 from __future__ import unicode_literals
bgneal@1081 3
bgneal@1081 4 from django.db import migrations, models
bgneal@1081 5
bgneal@1081 6
bgneal@1081 7 class Migration(migrations.Migration):
bgneal@1081 8
bgneal@1081 9 dependencies = [
bgneal@1081 10 ]
bgneal@1081 11
bgneal@1081 12 operations = [
bgneal@1081 13 migrations.CreateModel(
bgneal@1081 14 name='Event',
bgneal@1081 15 fields=[
bgneal@1081 16 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
bgneal@1081 17 ('name', models.CharField(max_length=64)),
bgneal@1081 18 ('url', models.URLField()),
bgneal@1081 19 ('event_date', models.DateTimeField()),
bgneal@1081 20 ('is_active', models.BooleanField(db_index=True)),
bgneal@1081 21 ],
bgneal@1081 22 ),
bgneal@1081 23 ]