Remove ckeditor_uploader dependency and replace with TextField
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
- Removed ckeditor_uploader==6.4.2 from requirements.txt - Modified migration 0014 to use models.TextField instead of ckeditor fields - Replaced RichTextUploadingField with standard TextField for blog content and portfolio descriptions - This resolves dependency issues while maintaining data compatibility
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
# Generated by Django 5.1.1 on 2025-11-25 23:21
|
# Generated by Django 5.1.1 on 2025-11-25 23:21
|
||||||
|
|
||||||
import ckeditor_uploader.fields
|
# Modified to remove ckeditor dependency
|
||||||
import django.db.models.deletion
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
|
import django.db.models.deletion
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
@@ -32,7 +32,7 @@ class Migration(migrations.Migration):
|
|||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='blogpost',
|
model_name='blogpost',
|
||||||
name='content',
|
name='content',
|
||||||
field=ckeditor_uploader.fields.RichTextUploadingField(verbose_name='Содержание'),
|
field=models.TextField(verbose_name='Содержание'),
|
||||||
),
|
),
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='NewsPost',
|
name='NewsPost',
|
||||||
@@ -41,7 +41,7 @@ class Migration(migrations.Migration):
|
|||||||
('title', models.CharField(max_length=200, verbose_name='Заголовок')),
|
('title', models.CharField(max_length=200, verbose_name='Заголовок')),
|
||||||
('slug', models.SlugField(max_length=200, unique=True, verbose_name='URL')),
|
('slug', models.SlugField(max_length=200, unique=True, verbose_name='URL')),
|
||||||
('excerpt', models.TextField(max_length=300, verbose_name='Краткое описание')),
|
('excerpt', models.TextField(max_length=300, verbose_name='Краткое описание')),
|
||||||
('content', ckeditor_uploader.fields.RichTextUploadingField(verbose_name='Содержание')),
|
('content', models.TextField(verbose_name='Содержание')),
|
||||||
('featured_image', models.ImageField(upload_to='news/', verbose_name='Главное изображение')),
|
('featured_image', models.ImageField(upload_to='news/', verbose_name='Главное изображение')),
|
||||||
('tags', models.CharField(blank=True, help_text='Разделите запятыми', max_length=200, verbose_name='Теги')),
|
('tags', models.CharField(blank=True, help_text='Разделите запятыми', max_length=200, verbose_name='Теги')),
|
||||||
('is_published', models.BooleanField(default=False, verbose_name='Опубликовано')),
|
('is_published', models.BooleanField(default=False, verbose_name='Опубликовано')),
|
||||||
@@ -65,7 +65,7 @@ class Migration(migrations.Migration):
|
|||||||
('title', models.CharField(max_length=200, verbose_name='Название проекта')),
|
('title', models.CharField(max_length=200, verbose_name='Название проекта')),
|
||||||
('slug', models.SlugField(max_length=200, unique=True, verbose_name='URL')),
|
('slug', models.SlugField(max_length=200, unique=True, verbose_name='URL')),
|
||||||
('short_description', models.TextField(max_length=300, verbose_name='Краткое описание')),
|
('short_description', models.TextField(max_length=300, verbose_name='Краткое описание')),
|
||||||
('description', ckeditor_uploader.fields.RichTextUploadingField(blank=True, verbose_name='Полное описание')),
|
('description', models.TextField(blank=True, verbose_name='Полное описание')),
|
||||||
('thumbnail', models.ImageField(upload_to='portfolio/thumbnails/', verbose_name='Превью изображение')),
|
('thumbnail', models.ImageField(upload_to='portfolio/thumbnails/', verbose_name='Превью изображение')),
|
||||||
('client', models.CharField(blank=True, max_length=200, verbose_name='Клиент')),
|
('client', models.CharField(blank=True, max_length=200, verbose_name='Клиент')),
|
||||||
('project_url', models.URLField(blank=True, verbose_name='Ссылка на проект')),
|
('project_url', models.URLField(blank=True, verbose_name='Ссылка на проект')),
|
||||||
|
|||||||
Reference in New Issue
Block a user