add mailing_list email field on team model

This commit is contained in:
Stephan Telling 2017-07-11 19:39:43 +02:00
parent a96d9f74be
commit a67f9ee4a5
No known key found for this signature in database
GPG key ID: D4892289F36ADA9B
2 changed files with 21 additions and 0 deletions

View file

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

View file

@ -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)