Skip to content

Commit

Permalink
tests: remove previously missed old ckeditor fields from migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
goapunk committed Jan 6, 2025
1 parent 3929c4d commit ad74791
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 11 deletions.
5 changes: 1 addition & 4 deletions tests/apps/ideas/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)),
(
Expand Down
7 changes: 2 additions & 5 deletions tests/apps/ideas/migrations/0006_alter_idea_description.py
Original file line number Diff line number Diff line change
@@ -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):
Expand All @@ -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"),
),
]
21 changes: 21 additions & 0 deletions tests/apps/ideas/migrations/0008_alter_idea_description.py
Original file line number Diff line number Diff line change
@@ -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"
),
),
]
3 changes: 1 addition & 2 deletions tests/apps/moderatorfeedback/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit ad74791

Please sign in to comment.