Unverified Commit d01e46ae authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Add missing migrations for !5

parent e16ab863
# -*- coding: utf-8 -*-
# Generated by Django 1.10b1 on 2016-07-13 13:58
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
import django.db.models.manager
class Migration(migrations.Migration):
dependencies = [
('committees', '0001_squashed_0006_auto_20160707_1700'),
]
operations = [
migrations.AlterModelManagers(
name='committee',
managers=[
('active_committees', django.db.models.manager.Manager()),
],
),
migrations.AddField(
model_name='committee',
name='contact_email',
field=models.EmailField(default='commissie@thalia.nu', max_length=254, verbose_name='contact email address'),
preserve_default=False,
),
migrations.AddField(
model_name='committee',
name='since',
field=models.DateField(blank=True, null=True, verbose_name='founded in'),
),
migrations.AddField(
model_name='committee',
name='until',
field=models.DateField(blank=True, null=True, verbose_name='existed until'),
),
migrations.AlterField(
model_name='committeemembership',
name='since',
field=models.DateField(default=datetime.date.today, help_text='The date this member joined the committee in this role', verbose_name='Committee member since'),
),
]
import datetime
import logging import logging
from django.core.exceptions import ValidationError, NON_FIELD_ERRORS from django.core.exceptions import ValidationError, NON_FIELD_ERRORS
...@@ -49,9 +50,17 @@ class Committee(models.Model): ...@@ -49,9 +50,17 @@ class Committee(models.Model):
blank=True, blank=True,
) )
since = models.DateField(_('founded in')) since = models.DateField(
_('founded in'),
null=True,
blank=True,
)
until = models.DateField(_('existed until')) until = models.DateField(
_('existed until'),
null=True,
blank=True,
)
contact_email = models.EmailField(_('contact email address')) contact_email = models.EmailField(_('contact email address'))
...@@ -89,7 +98,7 @@ class CommitteeMembership(models.Model): ...@@ -89,7 +98,7 @@ class CommitteeMembership(models.Model):
since = models.DateField( since = models.DateField(
verbose_name=_('Committee member since'), verbose_name=_('Committee member since'),
help_text=_('The date this member joined the committee in this role'), help_text=_('The date this member joined the committee in this role'),
default=lambda: timezone.now().date(), default=datetime.date.today
) )
until = models.DateField( until = models.DateField(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment