From a67f9ee4a5d01adfb0e73ba899ba9bd13c3da5e7 Mon Sep 17 00:00:00 2001 From: Stephan Telling Date: Tue, 11 Jul 2017 19:39:43 +0200 Subject: [PATCH] add mailing_list email field on team model --- .../migrations/0015_team_mailing_list.py | 20 +++++++++++++++++++ src/teams/models.py | 1 + 2 files changed, 21 insertions(+) create mode 100644 src/teams/migrations/0015_team_mailing_list.py 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)