add mailing_list email field on team model
This commit is contained in:
parent
a96d9f74be
commit
a67f9ee4a5
20
src/teams/migrations/0015_team_mailing_list.py
Normal file
20
src/teams/migrations/0015_team_mailing_list.py
Normal 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),
|
||||
),
|
||||
]
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue