Commit 7ebe7872 authored by felix.herrmann's avatar felix.herrmann
Browse files

fix(notifications): limit Notification() text field mx_length to 400. Fixes #78

parent 5134a1c0
# Generated by Django 2.2.12 on 2020-06-01 09:27
from django.db import migrations
import django_bleach.models
class Migration(migrations.Migration):
dependencies = [
('ddcomments', '0023_comment_deleted'),
]
operations = [
migrations.AlterField(
model_name='notification',
name='text',
field=django_bleach.models.BleachField(max_length=400),
),
]
......@@ -37,7 +37,7 @@ class Notification(MPTTModel):
notification_type = models.CharField(
max_length=4, choices=NOTIFICATION_TYPE_CHOICES, default=PUBLIC,
)
text = BleachField()
text = BleachField(max_length=400)
date_added = models.DateTimeField(auto_now_add=True)
date_edited = models.DateTimeField(auto_now=True)
owner = models.ForeignKey(
......
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