mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-13 13:12:42 +00:00

At this point, we set the field to PROTECTED and dont' allow the deletion at all. In the future we might want to allow a set null operation, but for now we require the users to contact webmaster@ to handle that, so we keep it under control.
21 lines
682 B
Python
21 lines
682 B
Python
# Generated by Django 2.2.11 on 2020-09-07 14:13
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('core', '0004_org_emails'),
|
|
('news', '0005_modstate'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='newsarticle',
|
|
name='email',
|
|
field=models.ForeignKey(blank=True, help_text='Pick a confirmed email associated with the organisation. This will be used as the reply address of posted news.', null=True, on_delete=django.db.models.deletion.PROTECT, to='core.OrganisationEmail', verbose_name='Reply email'),
|
|
),
|
|
]
|