Files
postgres-web/pgweb/news/migrations/0006_sending_email.py
Magnus Hagander 47e1ef2bce Don't remove news articles when attached email is removed
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.
2020-11-11 15:36:51 +01:00

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'),
),
]