2017-10-17 15:52:30 +02:00
|
|
|
from cms.models.pluginmodel import CMSPlugin
|
|
|
|
from django.db import models
|
2017-10-17 17:51:01 +02:00
|
|
|
from djangocms_text_ckeditor.fields import HTMLField
|
2017-10-17 15:52:30 +02:00
|
|
|
from filer.fields.image import FilerImageField
|
2016-04-10 16:12:43 -05:00
|
|
|
|
2017-10-17 15:52:30 +02:00
|
|
|
|
|
|
|
class UngelichPicture(CMSPlugin):
|
|
|
|
image = FilerImageField(
|
|
|
|
null=True,
|
|
|
|
blank=True,
|
|
|
|
related_name="image",
|
|
|
|
on_delete=models.SET_NULL
|
|
|
|
)
|
|
|
|
title = models.CharField(max_length=200)
|
2017-10-17 16:25:01 +02:00
|
|
|
|
|
|
|
|
|
|
|
class UngelichContactUsSection(CMSPlugin):
|
|
|
|
email = models.EmailField(max_length=200)
|
2017-10-17 17:51:01 +02:00
|
|
|
|
|
|
|
|
|
|
|
class UngelichTextSection(CMSPlugin):
|
|
|
|
title = models.CharField(max_length=200)
|
|
|
|
description = HTMLField()
|