diff --git a/src/teams/migrations/0015_team_mailing_list.py b/src/teams/migrations/0015_team_mailing_list.py new file mode 100644 index 00000000..fa089713 --- /dev/null +++ b/src/teams/migrations/0015_team_mailing_list.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.5 on 2017-07-11 17:39 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('teams', '0014_remove_teammember_deleted'), + ] + + operations = [ + migrations.AddField( + model_name='team', + name='mailing_list', + field=models.EmailField(blank=True, max_length=254), + ), + ] diff --git a/src/teams/models.py b/src/teams/models.py index f1293e83..2f360db4 100644 --- a/src/teams/models.py +++ b/src/teams/models.py @@ -47,6 +47,7 @@ class Team(CampRelatedModel): related_name='teams', through='teams.TeamMember' ) + mailing_list = models.EmailField(blank=True) def __str__(self): return '{} ({})'.format(self.name, self.camp)