Commit c698d1f4 authored by felix.herrmann's avatar felix.herrmann
Browse files

feat(maxlength): set max_length for BleachFields in ddcomments

parent f3a3e08c
# Generated by Django 2.2.12 on 2020-06-02 06:44
from django.db import migrations
import django_bleach.models
class Migration(migrations.Migration):
dependencies = [
('ddcomments', '0023_comment_deleted'),
]
operations = [
migrations.AlterField(
model_name='comment',
name='text',
field=django_bleach.models.BleachField(max_length=1200),
),
migrations.AlterField(
model_name='notification',
name='text',
field=django_bleach.models.BleachField(max_length=12000),
),
]
......@@ -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=12000)
date_added = models.DateTimeField(auto_now_add=True)
date_edited = models.DateTimeField(auto_now=True)
owner = models.ForeignKey(
......@@ -101,7 +101,7 @@ class Comment(MPTTModel):
comment_type = models.CharField(
max_length=4, choices=COMMENT_TYPE_CHOICES, default=PUBLIC,
)
text = BleachField()
text = BleachField(max_length=1200)
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