Skip to content
Snippets Groups Projects

Add calendar page with link from calendar display

Merged jindra12 requested to merge features/add-calendar-page into test
Files
6
+ 0
27
@@ -79,10 +79,6 @@ class CalendarMixin(models.Model):
Calendar, null=True, blank=True, on_delete=models.PROTECT
)
@property
def first_calendar_page(self):
return self._first_subpage_of_type(CalendarPageMixin)
class Meta:
abstract = True
@@ -108,26 +104,3 @@ class CalendarMixin(models.Model):
self.calendar = None
super().save(*args, **kwargs)
class CalendarPageMixin(CalendarMixin):
"""
Page mixin for displaying full calendar
"""
calendar_url = models.URLField(
"URL kalendáře ve formátu iCal", blank=False, null=True
)
### PANELS
content_panels = [
FieldPanel("calendar_url"),
]
### RELATIONS
subpage_types = []
class Meta:
abstract = True
Loading