From a7e5f91e3f1ebf6c1c8c95bf78ba2d8c2f8ae4f3 Mon Sep 17 00:00:00 2001 From: Julian Dehm Date: Mon, 6 Jan 2025 16:43:43 +0100 Subject: [PATCH] tests: remove previously missed old ckeditor fields from migrations --- changelog/_0001.md | 4 ++++ tests/apps/ideas/migrations/0001_initial.py | 5 +---- tests/apps/moderatorfeedback/migrations/0001_initial.py | 3 +-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/changelog/_0001.md b/changelog/_0001.md index 19820eacd..43218beec 100644 --- a/changelog/_0001.md +++ b/changelog/_0001.md @@ -1,3 +1,7 @@ +### Changed + +- tests: replace the ckeditor fields with TextField in migrations to be able to remove the django-ckeditor package + ### Removed - remove the no longer needed django-ckeditor package, the transition to diff --git a/tests/apps/ideas/migrations/0001_initial.py b/tests/apps/ideas/migrations/0001_initial.py index f10c3287f..fdb474687 100644 --- a/tests/apps/ideas/migrations/0001_initial.py +++ b/tests/apps/ideas/migrations/0001_initial.py @@ -4,7 +4,6 @@ import adhocracy4.categories.fields import adhocracy4.maps.fields -import ckeditor.fields from django.db import migrations, models import django.db.models.deletion @@ -41,9 +40,7 @@ class Migration(migrations.Migration): ), ( "description", - ckeditor.fields.RichTextField( - blank=True, verbose_name="Description" - ), + models.TextField(blank=True, verbose_name="Description"), ), ("point", adhocracy4.maps.fields.PointField(blank=True)), ( diff --git a/tests/apps/moderatorfeedback/migrations/0001_initial.py b/tests/apps/moderatorfeedback/migrations/0001_initial.py index 3840b99da..2d96ddfef 100644 --- a/tests/apps/moderatorfeedback/migrations/0001_initial.py +++ b/tests/apps/moderatorfeedback/migrations/0001_initial.py @@ -1,6 +1,5 @@ # Generated by Django 3.2.7 on 2021-09-28 09:59 -import ckeditor.fields import django.utils.timezone from django.conf import settings from django.db import migrations, models @@ -36,7 +35,7 @@ class Migration(migrations.Migration): "modified", models.DateTimeField(blank=True, editable=False, null=True), ), - ("statement", ckeditor.fields.RichTextField(blank=True)), + ("statement", models.TextField(blank=True)), ( "creator", models.ForeignKey(