summaryrefslogtreecommitdiff
path: root/pgweb/pugs/migrations/0001_initial.py
blob: 48fe72ad5e870d3484c7c1f667cb3b83bd532829 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -*- 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='PUG',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('approved', models.BooleanField(default=False)),
                ('locale', models.CharField(help_text="Locale where the PUG meets, e.g. 'New York City'", max_length=255)),
                ('title', models.CharField(help_text="Title/Name of the PUG, e.g. 'NYC PostgreSQL User Group'", max_length=255)),
                ('website_url', models.TextField(null=True, blank=True)),
                ('mailing_list_url', models.TextField(null=True, blank=True)),
                ('country', models.ForeignKey(to='core.Country', on_delete=models.CASCADE)),
                ('org', models.ForeignKey(blank=True, to='core.Organisation', help_text='Organisation that manages the PUG and its contents', null=True, on_delete=models.CASCADE)),
            ],
        ),
    ]