alfortville: mark comments as nullable (#8672)

This commit is contained in:
Frédéric Péters 2015-10-16 15:24:43 +02:00
parent ce070e3b51
commit d507cef322
2 changed files with 21 additions and 1 deletions

View File

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

View File

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