Files
postgres-web/pgweb/events/migrations/0001_initial.py
Magnus Hagander a8500c3853 Add migrations for all existing models
When migrating on existing installations, run the

python manage.py migrate --fake-initial

command.
2016-05-14 19:49:12 +02:00

37 lines
1.9 KiB
Python

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Event',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('approved', models.BooleanField(default=False)),
('title', models.CharField(max_length=100)),
('isonline', models.BooleanField(default=False, verbose_name=b'Online event')),
('city', models.CharField(max_length=50, blank=True)),
('state', models.CharField(max_length=50, blank=True)),
('training', models.BooleanField(default=False)),
('startdate', models.DateField(verbose_name=b'Start date')),
('enddate', models.DateField(verbose_name=b'End date')),
('summary', models.TextField(help_text=b'A short introduction (shown on the events listing page)')),
('details', models.TextField(help_text=b'Complete event description')),
('country', models.ForeignKey(blank=True, to='core.Country', null=True)),
('language', models.ForeignKey(default=b'eng', blank=True, to='core.Language', help_text=b'Primary language for event. When multiple languages, specify this in the event description', null=True)),
('org', models.ForeignKey(verbose_name=b'Organisation', to='core.Organisation', help_text=b'If no organisations are listed, please check the <a href="/account/orglist/">organisation list</a> and contact the organisation manager or webmaster@postgresql.org if none are listed.')),
],
options={
'ordering': ('-startdate', '-enddate'),
},
),
]