Change subtitle to HTMLfield

This commit is contained in:
PCoder 2017-11-19 15:51:52 +01:00
parent f927220a88
commit 567ff8d314
2 changed files with 22 additions and 1 deletions

View file

@ -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(),
),
]

View file

@ -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