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/ideas/migrations/0006_alter_idea_description.py b/tests/apps/ideas/migrations/0006_alter_idea_description.py index 368ecacf7..f73f0643d 100644 --- a/tests/apps/ideas/migrations/0006_alter_idea_description.py +++ b/tests/apps/ideas/migrations/0006_alter_idea_description.py @@ -1,7 +1,6 @@ # Generated by Django 3.2.20 on 2023-09-19 13:10 -from django.db import migrations -import django_ckeditor_5.fields +from django.db import migrations, models class Migration(migrations.Migration): @@ -13,8 +12,6 @@ class Migration(migrations.Migration): migrations.AlterField( model_name="idea", name="description", - field=django_ckeditor_5.fields.CKEditor5Field( - blank=True, verbose_name="Description" - ), + field=models.TextField(blank=True, verbose_name="Description"), ), ] diff --git a/tests/apps/ideas/migrations/0008_alter_idea_description.py b/tests/apps/ideas/migrations/0008_alter_idea_description.py new file mode 100644 index 000000000..736d05562 --- /dev/null +++ b/tests/apps/ideas/migrations/0008_alter_idea_description.py @@ -0,0 +1,21 @@ +# Generated by Django 4.2.16 on 2025-01-06 14:07 + +from django.db import migrations +import django_ckeditor_5.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ("a4test_ideas", "0007_alter_idea_labels"), + ] + + operations = [ + migrations.AlterField( + model_name="idea", + name="description", + field=django_ckeditor_5.fields.CKEditor5Field( + blank=True, verbose_name="Description" + ), + ), + ] 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(