Mercurial > public > sg101
annotate countdown/migrations/0001_initial.py @ 1188:cb712b2c34af
Add JSON option to dlcatreport management command.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 27 Dec 2021 17:30:26 -0600 |
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 ] |