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

Validations should be a list

This breaks Django2 otherwise
parent 2517eafc
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-24 13:31
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('activemembers', '0015_datamigration_lifelong'),
]
operations = [
migrations.AlterField(
model_name='mentorship',
name='year',
field=models.IntegerField(validators=[django.core.validators.MinValueValidator(1990)]),
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-25 13:52
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('activemembers', '0016_auto_20170124_1431'),
('activemembers', '0017_auto_20170121_1105'),
]
operations = [
]
......@@ -284,7 +284,7 @@ class Mentorship(models.Model):
on_delete=models.CASCADE,
verbose_name=_('Member'),
)
year = models.IntegerField(validators=MinValueValidator(1990))
year = models.IntegerField(validators=[MinValueValidator(1990)])
def __str__(self):
return _("{name} mentor in {year}").format(name=self.member,
......
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