From d507cef32250f163aa6bdf63a9703eaba8af8e78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 16 Oct 2015 15:24:43 +0200 Subject: [PATCH] alfortville: mark comments as nullable (#8672) --- .../migrations/0005_auto_20151016_1523.py | 20 +++++++++++++++++++ welco/contrib/alfortville/models.py | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 welco/contrib/alfortville/migrations/0005_auto_20151016_1523.py diff --git a/welco/contrib/alfortville/migrations/0005_auto_20151016_1523.py b/welco/contrib/alfortville/migrations/0005_auto_20151016_1523.py new file mode 100644 index 0000000..b053299 --- /dev/null +++ b/welco/contrib/alfortville/migrations/0005_auto_20151016_1523.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('alfortville', '0004_auto_20151016_1523'), + ] + + operations = [ + migrations.AlterField( + model_name='inbox', + name='comments', + field=models.TextField(null=True, verbose_name='Comments', blank=True), + preserve_default=True, + ), + ] diff --git a/welco/contrib/alfortville/models.py b/welco/contrib/alfortville/models.py index c47e4b4..f7d817d 100644 --- a/welco/contrib/alfortville/models.py +++ b/welco/contrib/alfortville/models.py @@ -37,7 +37,7 @@ class Inbox(models.Model): source_pk = models.PositiveIntegerField(null=True) source = generic.GenericForeignKey('source_type', 'source_pk') done = models.BooleanField(default=False) - comments = models.TextField(blank=True, verbose_name=_('Comments')) + comments = models.TextField(blank=True, null=True, verbose_name=_('Comments')) def role_name(self): return [x for x in get_wcs_data('api/roles').get('data')