Add SectionWithImage model and its migration

This commit is contained in:
M.Ravi 2017-10-19 00:28:34 +02:00
commit 8ce273ea1f
2 changed files with 40 additions and 0 deletions

View file

@ -14,6 +14,16 @@ class UngelichPicture(CMSPlugin):
title = models.CharField(max_length=400)
class SectionWithImage(UngelichPicture):
price_tag_image = FilerImageField(
null=True,
blank=True,
related_name="price_tag_image",
on_delete=models.SET_NULL
)
price_tag_url = models.URLField(max_length=300, default="")
class UngelichContactUsSection(CMSPlugin):
email = models.EmailField(max_length=200)