mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-10 00:42:06 +00:00
28 lines
1.2 KiB
Python
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)),
|
|
],
|
|
),
|
|
]
|