You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

28 lines
863 B

from django.db import models
from cms.models.pluginmodel import CMSPlugin
from djangocms_text_ckeditor.fields import HTMLField
class IndexBlockPlugin(CMSPlugin):
image = models.ImageField(upload_to="uploads/images/")
title = models.CharField(max_length=100)
description = models.TextField()
class DescTextBlockPlugin(CMSPlugin):
title = models.CharField(max_length=100)
description = models.TextField()
class ExtendedTextBlockPlugin(CMSPlugin):
order = models.PositiveIntegerField(default=1)
title = models.CharField(max_length=100)
description = HTMLField()
extended_description = HTMLField()
class ExtendedBlockPlugin(CMSPlugin):
image = models.ImageField(upload_to="uploads/images/")
title = models.CharField(max_length=100)
description = models.TextField()
extended_description = models.TextField()