annotate countdown/migrations/0001_initial.py @ 1081:ecb8f07d937b

Added countdown application.
author Brian Neal <bgneal@gmail.com>
date Sun, 24 Apr 2016 12:27:26 -0500
parents
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 ]