annotate countdown/migrations/0001_initial.py @ 1132:1407af5472e4
Add our own table stack.
Foundation's table.stack only shows the first th in a thead. Added my own
version that shows all of them.
Updated templates to use new class.
author |
Brian Neal <bgneal@gmail.com> |
date |
Wed, 28 Sep 2016 20:25:29 -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 ]
|