From e05a2eab7e4a2b985dd5fac426e9a87a210dd8ec Mon Sep 17 00:00:00 2001 From: PCoder Date: Sun, 19 Nov 2017 13:19:40 +0100 Subject: [PATCH] Add UngleichHeader and UngleichHeaderItem models --- ungleich_page/models.py | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/ungleich_page/models.py b/ungleich_page/models.py index 894e4101..640e599b 100644 --- a/ungleich_page/models.py +++ b/ungleich_page/models.py @@ -95,4 +95,24 @@ class UngleichServiceItem(ServiceItem): blank=True, related_name="service_item_data_replaced_image", on_delete=models.SET_NULL - ) \ No newline at end of file + ) + + +class UngleichHeader(CMSPlugin): + background_image = FilerImageField( + null=True, + blank=True, + related_name="ungleich_header_background_image", + on_delete=models.SET_NULL + ) + carousel_data_interval = models.IntegerField(default=5000) + + +class UngleichHeaderItem(CMSPlugin): + image = FilerImageField( + null=True, + blank=True, + related_name="ungleich_header_item_image", + on_delete=models.SET_NULL + ) + description = HTMLField() \ No newline at end of file