Skip to content

Commit

Permalink
Allow large messages
Browse files Browse the repository at this point in the history
  • Loading branch information
emorozov committed Nov 1, 2017
1 parent b0f2a04 commit 4a8c182
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions papertrail/migrations/0003_message_size.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-01 02:19
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('papertrail', '0002_auto_20160125_1711'),
]

operations = [
migrations.AlterField(
model_name='entry',
name='message',
field=models.TextField(),
),
]
2 changes: 1 addition & 1 deletion papertrail/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def __contains__(self, target_name):
class Entry(models.Model, ModelWithRelatedObjectsMixin):
timestamp = models.DateTimeField(db_index=True)
type = models.CharField(max_length=50, db_index=True)
message = models.CharField(max_length=512)
message = models.TextField()
data = JSONField(null=True)

# Field for storing a custom 'key' for looking up specific events from
Expand Down

0 comments on commit 4a8c182

Please sign in to comment.