diff --git a/changelog/_0001.md b/changelog/_0001.md new file mode 100644 index 000000000..43218beec --- /dev/null +++ b/changelog/_0001.md @@ -0,0 +1,8 @@ +### 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 +django-ckeditor-5 has been done now. diff --git a/requirements/base.txt b/requirements/base.txt index adc4ca8f8..6c7dce3bc 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -4,7 +4,6 @@ Django==4.2.16 django-allauth==65.3.1 django-autoslug==1.9.9 https://github.com/liqd/django-ckeditor-5/releases/download/v0.2.11-liqd/django_ckeditor_5-0.2.11-py3-none-any.whl -django-ckeditor==6.7.1 django-enumfield==3.1 django-filter==24.3 django-widget-tweaks==1.5.0 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(