Skip to content

Commit

Permalink
Updated hero_accent_colour to hero_style
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbiggs committed Dec 3, 2024
1 parent 5ed190a commit 794346e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions etna/core/models/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class Meta:
class HeroAccentColourMixin(models.Model):
"""Mixin to choose the accent colour of the hero component"""

hero_accent_colour = models.CharField(
hero_style = models.CharField(
max_length=20,
default=HeroColourChoices.NONE,
verbose_name=_("hero component colour"),
Expand All @@ -240,11 +240,11 @@ class Meta:
abstract = True

content_panels = [
FieldPanel("hero_accent_colour"),
FieldPanel("hero_style"),
]

api_fields = [
APIField("hero_accent_colour"),
APIField("hero_style"),
]


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ class Migration(migrations.Migration):
),
migrations.AddField(
model_name="exhibitionpage",
name="hero_accent_colour",
name="hero_style",
field=models.CharField(
choices=[
("none", "None"),
Expand Down
2 changes: 1 addition & 1 deletion etna/whatson/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ class Meta:
[
FieldPanel("hero_image"),
FieldPanel("hero_image_caption"),
FieldPanel("hero_accent_colour"),
FieldPanel("hero_style"),
FieldPanel("subtitle"),
FieldPanel("accent_colour"),
],
Expand Down

0 comments on commit 794346e

Please sign in to comment.