From 567ff8d314044a9f88f1289315e5388ff91b8306 Mon Sep 17 00:00:00 2001 From: PCoder Date: Sun, 19 Nov 2017 15:51:52 +0100 Subject: [PATCH] Change subtitle to HTMLfield --- .../migrations/0010_auto_20171119_1404.py | 21 +++++++++++++++++++ ungleich_page/models.py | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 ungleich_page/migrations/0010_auto_20171119_1404.py diff --git a/ungleich_page/migrations/0010_auto_20171119_1404.py b/ungleich_page/migrations/0010_auto_20171119_1404.py new file mode 100644 index 00000000..4057a90b --- /dev/null +++ b/ungleich_page/migrations/0010_auto_20171119_1404.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.4 on 2017-11-19 14:04 +from __future__ import unicode_literals + +from django.db import migrations +import djangocms_text_ckeditor.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ('ungleich_page', '0009_ungleichheader_ungleichheaderitem'), + ] + + operations = [ + migrations.AlterField( + model_name='service', + name='sub_title', + field=djangocms_text_ckeditor.fields.HTMLField(), + ), + ] diff --git a/ungleich_page/models.py b/ungleich_page/models.py index 640e599b..d1e0199b 100644 --- a/ungleich_page/models.py +++ b/ungleich_page/models.py @@ -54,7 +54,7 @@ class UngelichTextSection(CMSPlugin): class Service(CMSPlugin): menu_text = models.CharField(max_length=100, default="", blank=True) title = models.CharField(max_length=200) - sub_title = models.CharField(max_length=200) + sub_title = HTMLField() def __str__(self): return self.title