Skip to content

Commit

Permalink
remove deprecated django-ckeditor field
Browse files Browse the repository at this point in the history
  • Loading branch information
goapunk committed Dec 9, 2024
1 parent 8c8061b commit d410306
Show file tree
Hide file tree
Showing 21 changed files with 33 additions and 64 deletions.
5 changes: 1 addition & 4 deletions apps/activities/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Generated by Django 2.2.6 on 2019-10-24 12:30

import adhocracy4.ckeditor.fields
import autoslug.fields
from django.db import migrations, models
import django.db.models.deletion
Expand Down Expand Up @@ -46,9 +45,7 @@ class Migration(migrations.Migration):
),
(
"description",
adhocracy4.ckeditor.fields.RichTextCollapsibleUploadingField(
verbose_name="Description"
),
models.TextField(verbose_name="Description"),
),
],
options={
Expand Down
3 changes: 1 addition & 2 deletions apps/budgeting/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import adhocracy4.maps.fields
import apps.moderatorfeedback.fields
import autoslug.fields
import ckeditor.fields
from django.db import migrations, models
import django.db.models.deletion

Expand Down Expand Up @@ -61,7 +60,7 @@ class Migration(migrations.Migration):
("name", models.CharField(max_length=120, verbose_name="Title")),
(
"description",
ckeditor.fields.RichTextField(verbose_name="Description"),
models.TextField(verbose_name="Description"),
),
(
"image",
Expand Down
3 changes: 1 addition & 2 deletions apps/documents/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Generated by Django 2.2.6 on 2019-10-24 12:30

import ckeditor_uploader.fields
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
Expand Down Expand Up @@ -60,7 +59,7 @@ class Migration(migrations.Migration):
models.DateTimeField(blank=True, editable=False, null=True),
),
("name", models.CharField(blank=True, max_length=120)),
("text", ckeditor_uploader.fields.RichTextUploadingField()),
("text", models.TextField()),
("weight", models.PositiveIntegerField()),
(
"chapter",
Expand Down
3 changes: 1 addition & 2 deletions apps/ideas/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import adhocracy4.images.fields
import apps.moderatorfeedback.fields
import autoslug.fields
import ckeditor.fields
from django.db import migrations, models
import django.db.models.deletion

Expand Down Expand Up @@ -60,7 +59,7 @@ class Migration(migrations.Migration):
("name", models.CharField(max_length=120, verbose_name="Title")),
(
"description",
ckeditor.fields.RichTextField(verbose_name="Description"),
models.TextField(verbose_name="Description"),
),
(
"image",
Expand Down
5 changes: 1 addition & 4 deletions apps/interactiveevents/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Generated by Django 2.2.17 on 2020-11-24 12:12

import adhocracy4.categories.fields
import adhocracy4.ckeditor.fields
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
Expand Down Expand Up @@ -33,9 +32,7 @@ class Migration(migrations.Migration):
),
(
"live_stream",
adhocracy4.ckeditor.fields.RichTextCollapsibleUploadingField(
blank=True, verbose_name="Live Stream"
),
models.TextField(blank=True, verbose_name="Live Stream"),
),
],
options={
Expand Down
3 changes: 1 addition & 2 deletions apps/mapideas/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import adhocracy4.maps.fields
import apps.moderatorfeedback.fields
import autoslug.fields
import ckeditor.fields
from django.db import migrations, models
import django.db.models.deletion

Expand Down Expand Up @@ -61,7 +60,7 @@ class Migration(migrations.Migration):
("name", models.CharField(max_length=120, verbose_name="Title")),
(
"description",
ckeditor.fields.RichTextField(verbose_name="Description"),
models.TextField(verbose_name="Description"),
),
(
"image",
Expand Down
3 changes: 1 addition & 2 deletions apps/moderatorfeedback/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Generated by Django 2.2.6 on 2019-10-24 12:31

import ckeditor.fields
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
Expand Down Expand Up @@ -40,7 +39,7 @@ class Migration(migrations.Migration):
),
(
"statement",
ckeditor.fields.RichTextField(
models.TextField(
blank=True,
help_text="The official feedback will appear below the idea, indicating your organisation. The idea provider receives a notification.",
verbose_name="Official feedback",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Generated by Django 3.2.18 on 2023-03-30 11:17

import ckeditor.fields
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
Expand Down Expand Up @@ -44,9 +43,7 @@ class Migration(migrations.Migration):
),
(
"feedback_text",
ckeditor.fields.RichTextField(
blank=True, verbose_name="Moderator feedback"
),
models.TextField(blank=True, verbose_name="Moderator feedback"),
),
(
"comment",
Expand Down
5 changes: 1 addition & 4 deletions apps/newsletters/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Generated by Django 2.2.6 on 2019-10-24 13:08

import ckeditor_uploader.fields
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
Expand Down Expand Up @@ -50,9 +49,7 @@ class Migration(migrations.Migration):
("subject", models.CharField(max_length=254, verbose_name="Subject")),
(
"body",
ckeditor_uploader.fields.RichTextUploadingField(
blank=True, verbose_name="Email body"
),
models.TextField(blank=True, verbose_name="Email body"),
),
(
"sent",
Expand Down
5 changes: 2 additions & 3 deletions apps/newsletters/migrations/0002_add_helptext_to_body.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Generated by Django 2.2.17 on 2020-11-27 16:03

import ckeditor_uploader.fields
from django.db import migrations
from django.db import migrations, models


class Migration(migrations.Migration):
Expand All @@ -14,7 +13,7 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name="newsletter",
name="body",
field=ckeditor_uploader.fields.RichTextUploadingField(
field=models.TextField(
blank=True,
help_text="When adding images, please ensure to set the width no larger than 600px.",
verbose_name="Email body",
Expand Down
5 changes: 1 addition & 4 deletions apps/offlineevents/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Generated by Django 2.2.6 on 2019-10-24 12:32

import autoslug.fields
import ckeditor_uploader.fields
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
Expand Down Expand Up @@ -58,9 +57,7 @@ class Migration(migrations.Migration):
("date", models.DateTimeField(verbose_name="Date")),
(
"description",
ckeditor_uploader.fields.RichTextUploadingField(
verbose_name="Description"
),
models.TextField(verbose_name="Description"),
),
(
"creator",
Expand Down
6 changes: 2 additions & 4 deletions apps/organisations/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import adhocracy4.images.fields
import autoslug.fields
import ckeditor.fields
import ckeditor_uploader.fields
import parler.models
from django.conf import settings
from django.db import migrations, models
Expand Down Expand Up @@ -85,15 +83,15 @@ class Migration(migrations.Migration):
),
(
"information",
ckeditor_uploader.fields.RichTextUploadingField(
models.TextField(
blank=True,
help_text="You can provide general information about your participation platform to your visitors. It’s also helpful to name a general person of contact for inquiries. The information will be shown on a separate page that can be reached via the main menu.",
verbose_name="Information about your organisation",
),
),
(
"imprint",
ckeditor.fields.RichTextField(
models.TextField(
help_text="Please provide all the legally required information of your imprint. The imprint will be shown on a separate page.",
verbose_name="Imprint",
),
Expand Down
5 changes: 2 additions & 3 deletions apps/organisations/migrations/0003_collapsible_element.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Generated by Django 2.2.8 on 2020-01-16 17:12

import adhocracy4.ckeditor.fields
from django.db import migrations
from django.db import migrations, models


class Migration(migrations.Migration):
Expand All @@ -14,7 +13,7 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name="organisation",
name="information",
field=adhocracy4.ckeditor.fields.RichTextCollapsibleUploadingField(
field=models.TextField(
blank=True,
help_text="You can provide general information about your participation platform to your visitors. It’s also helpful to name a general person of contact for inquiries. The information will be shown on a separate page that can be reached via the main menu.",
verbose_name="Information about your organisation",
Expand Down
5 changes: 2 additions & 3 deletions apps/organisations/migrations/0008_org_info_helptext.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Generated by Django 2.2.10 on 2020-02-20 10:46

import adhocracy4.ckeditor.fields
from django.db import migrations
from django.db import migrations, models


class Migration(migrations.Migration):
Expand All @@ -14,7 +13,7 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name="organisation",
name="information",
field=adhocracy4.ckeditor.fields.RichTextCollapsibleUploadingField(
field=models.TextField(
blank=True,
help_text='You can provide general information about your participation platform to your visitors. It’s also helpful to name a general person of contact for inquiries. The information will be shown on a separate "About" page that can be reached via the main menu.',
verbose_name="Information about your organisation",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Generated by Django 2.2.11 on 2020-04-05 16:41

import ckeditor.fields
from django.db import migrations, models


Expand All @@ -14,7 +13,7 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name="organisation",
name="data_protection",
field=ckeditor.fields.RichTextField(
field=models.TextField(
blank=True,
help_text="Please provide your data protection information.",
verbose_name="Data protection",
Expand All @@ -23,7 +22,7 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name="organisation",
name="netiquette",
field=ckeditor.fields.RichTextField(
field=models.TextField(
blank=True,
help_text="Please provide your rules for online discussions.",
verbose_name="Netiquette",
Expand All @@ -32,7 +31,7 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name="organisation",
name="terms_of_use",
field=ckeditor.fields.RichTextField(
field=models.TextField(
blank=True,
help_text="Please provide your terms of use.",
verbose_name="Terms of use",
Expand All @@ -51,7 +50,7 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name="organisation",
name="imprint",
field=ckeditor.fields.RichTextField(
field=models.TextField(
blank=True,
help_text="Please provide all the legally required information of your imprint. The imprint will be shown on a separate page.",
verbose_name="Imprint",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Generated by Django 2.2.11 on 2020-04-07 10:34

import ckeditor.fields
from django.db import migrations
from django.db import migrations, models


class Migration(migrations.Migration):
Expand All @@ -14,7 +13,7 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name="organisation",
name="data_protection",
field=ckeditor.fields.RichTextField(
field=models.TextField(
blank=True,
help_text="Please provide all the legally required information of your data protection. The data protection policy will be shown on a separate page.",
verbose_name="Data protection policy",
Expand All @@ -23,7 +22,7 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name="organisation",
name="netiquette",
field=ckeditor.fields.RichTextField(
field=models.TextField(
blank=True,
help_text="Please provide a netiquette for the participants. The netiquette helps improving the climate of online discussions and supports the moderation.",
verbose_name="Netiquette",
Expand All @@ -32,7 +31,7 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name="organisation",
name="terms_of_use",
field=ckeditor.fields.RichTextField(
field=models.TextField(
blank=True,
help_text="Please provide all the legally required information of your terms of use. The terms of use will be shown on a separate page.",
verbose_name="Terms of use",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
from django.db import migrations
from django.db import models

import adhocracy4.ckeditor.fields


class Migration(migrations.Migration):

Expand Down Expand Up @@ -70,7 +68,7 @@ class Migration(migrations.Migration):
),
(
"information",
adhocracy4.ckeditor.fields.RichTextCollapsibleUploadingField(
models.TextField(
blank=True,
help_text='You can provide general information about your participation platform to your visitors. It’s also helpful to name a general person of contact for inquiries. The information will be shown on a separate "About" page that can be reached via the main menu.',
verbose_name="Information about your organisation",
Expand Down
3 changes: 1 addition & 2 deletions apps/topicprio/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import adhocracy4.categories.fields
import adhocracy4.images.fields
import autoslug.fields
import ckeditor_uploader.fields
from django.db import migrations, models
import django.db.models.deletion

Expand Down Expand Up @@ -40,7 +39,7 @@ class Migration(migrations.Migration):
),
),
("name", models.CharField(max_length=120, verbose_name="Title")),
("description", ckeditor_uploader.fields.RichTextUploadingField()),
("description", models.TextField()),
(
"image",
adhocracy4.images.fields.ConfiguredImageField(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Generated by Django 2.2.20 on 2021-05-07 14:27

import ckeditor_uploader.fields
from django.db import migrations
from django.db import migrations, models


class Migration(migrations.Migration):
Expand All @@ -14,8 +13,6 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name="topic",
name="description",
field=ckeditor_uploader.fields.RichTextUploadingField(
verbose_name="Description"
),
field=models.TextField(verbose_name="Description"),
),
]
3 changes: 3 additions & 0 deletions changelog/_0003.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Removed

- removed the deprecated django-ckeditor fields from older migrations
Loading

0 comments on commit d410306

Please sign in to comment.