Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions rca/home/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from django.core.exceptions import ValidationError
from django.db import models
from django.utils.safestring import mark_safe
from wagtail.admin.panels import (
FieldPanel,
MultiFieldPanel,
Expand Down Expand Up @@ -145,6 +146,9 @@ def get_context(self, request, *args, **kwargs):

context["hero_colour"] = LIGHT_HERO

if self.tap_widget:
context["tap_widget_code"] = mark_safe(self.tap_widget.script_code)

if (
hasattr(self, "hero_colour_option")
and self.hero_colour_option == DARK_TEXT_ON_LIGHT_IMAGE
Expand Down
Loading