Skip to content
Permalink
Browse files

Changed message field type to TextField. (#1754)

fix #1743
  • Loading branch information...
tonioo committed Jul 5, 2019
1 parent bb78d6b commit 1d430ba96e9164b320d2df96baf7630c1401bb2e
Showing with 26 additions and 1 deletion.
  1. +25 −0 modoboa/core/migrations/0017_auto_20190705_1045.py
  2. +1 −1 modoboa/core/models.py
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.18 on 2019-07-05 08:45
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('core', '0016_auto_20180713_1014'),
]

operations = [
migrations.AlterField(
model_name='log',
name='message',
field=models.TextField(),
),
migrations.AlterField(
model_name='user',
name='language',
field=models.CharField(choices=[('br', 'breton'), ('cs', 'čeština'), ('de', 'deutsch'), ('en', 'english'), ('el_GR', 'ελληνικά'), ('es', 'español'), ('fr', 'français'), ('it', 'italiano'), ('ja_JP', '日本の'), ('nl', 'nederlands'), ('pt_PT', 'português'), ('pt_BR', 'português (BR)'), ('pl_PL', 'polski'), ('ro_RO', 'Română'), ('ru', 'русский'), ('sv', 'svenska'), ('tr_TR', 'türk'), ('zh_TW', '中文(台灣)')], default='en', help_text='Prefered language to display pages.', max_length=10, verbose_name='language'),
),
]
@@ -432,7 +432,7 @@ class Log(models.Model):
"""Simple log in database."""

date_created = models.DateTimeField(auto_now_add=True)
message = models.CharField(max_length=255)
message = models.TextField()
level = models.CharField(max_length=15)
logger = models.CharField(max_length=30)

0 comments on commit 1d430ba

Please sign in to comment.
You can’t perform that action at this time.