mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
Add moderation for mailing lists
This commit is contained in:
26
club/migrations/0011_auto_20170821_1702.py
Normal file
26
club/migrations/0011_auto_20170821_1702.py
Normal file
@ -0,0 +1,26 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
('club', '0010_auto_20170817_1537'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='mailing',
|
||||
name='is_moderated',
|
||||
field=models.BooleanField(default=False, verbose_name='is moderated'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='mailing',
|
||||
name='moderator',
|
||||
field=models.ForeignKey(related_name='moderated_mailings', to=settings.AUTH_USER_MODEL, null=True, verbose_name='moderator'),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user