Files
postgres-web/pgweb/pugs/migrations/0001_initial.py
Magnus Hagander 46606e5284 Set on_delete=models.CASCADE on all ForeignKey fields
This is the bardware compatible value that will be needed once we
upgrade django later.
2020-03-31 22:34:51 +02:00

28 lines
1.2 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='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)),
],
),
]