diff --git a/etna/core/models/mixins.py b/etna/core/models/mixins.py index 27efbd546..0e63ef6da 100644 --- a/etna/core/models/mixins.py +++ b/etna/core/models/mixins.py @@ -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"), @@ -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"), ] diff --git a/etna/whatson/migrations/0014_alter_exhibitionpage_options_and_more.py b/etna/whatson/migrations/0014_alter_exhibitionpage_options_and_more.py index 42023cc46..50d5d32ff 100644 --- a/etna/whatson/migrations/0014_alter_exhibitionpage_options_and_more.py +++ b/etna/whatson/migrations/0014_alter_exhibitionpage_options_and_more.py @@ -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"), diff --git a/etna/whatson/models.py b/etna/whatson/models.py index ddbcdd23f..3bce315c2 100644 --- a/etna/whatson/models.py +++ b/etna/whatson/models.py @@ -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"), ],