Skip to content

Commit 8af389b

Browse files
authored
Merge pull request #22 from python-la-paz/feature/2-add-color-picker
fix: 🐛 Correct default values in models
2 parents 820feb6 + b1ee0d3 commit 8af389b

File tree

2 files changed

+66
-2
lines changed

2 files changed

+66
-2
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Generated by Django 5.0.9 on 2024-10-02 01:43
2+
3+
import wagtail_color_panel.fields
4+
from django.db import migrations
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('home', '0041_homepage_externalraws'),
11+
]
12+
13+
operations = [
14+
migrations.AlterField(
15+
model_name='homepage',
16+
name='background_section',
17+
field=wagtail_color_panel.fields.ColorField(blank=True, default='#FFFFFF', max_length=250),
18+
),
19+
migrations.AlterField(
20+
model_name='homepage',
21+
name='color_gradient_1',
22+
field=wagtail_color_panel.fields.ColorField(blank=True, default='#FF4D79', max_length=250),
23+
),
24+
migrations.AlterField(
25+
model_name='homepage',
26+
name='color_gradient_2',
27+
field=wagtail_color_panel.fields.ColorField(blank=True, default='#FF809F', max_length=250),
28+
),
29+
migrations.AlterField(
30+
model_name='homepage',
31+
name='color_primary',
32+
field=wagtail_color_panel.fields.ColorField(blank=True, default='#ff4a67', max_length=250),
33+
),
34+
migrations.AlterField(
35+
model_name='homepage',
36+
name='color_text_hero',
37+
field=wagtail_color_panel.fields.ColorField(blank=True, default='#FFFFFF', max_length=250),
38+
),
39+
migrations.AlterField(
40+
model_name='homepage',
41+
name='color_text_section',
42+
field=wagtail_color_panel.fields.ColorField(blank=True, default='#FFFFFF', max_length=250),
43+
),
44+
migrations.AlterField(
45+
model_name='homepage',
46+
name='navbar_background',
47+
field=wagtail_color_panel.fields.ColorField(blank=True, default='#000000', max_length=250),
48+
),
49+
migrations.AlterField(
50+
model_name='homepage',
51+
name='navbar_links_color',
52+
field=wagtail_color_panel.fields.ColorField(blank=True, default='#FFFFFF', max_length=250),
53+
),
54+
migrations.AlterField(
55+
model_name='segmentpage',
56+
name='background_section',
57+
field=wagtail_color_panel.fields.ColorField(blank=True, default='#FFFFFF', max_length=250),
58+
),
59+
migrations.AlterField(
60+
model_name='segmentpage',
61+
name='color_text_section',
62+
field=wagtail_color_panel.fields.ColorField(blank=True, default='#000000', max_length=250),
63+
),
64+
]

home/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class HomePage(Page):
9191
show_time = models.BooleanField(default=True)
9292
background_section = ColorField(max_length=250, blank=True, default="#FFFFFF")
9393
color_text_section = ColorField(max_length=250, blank=True, default="#FFFFFF")
94-
navbar_background = ColorField(max_length=250, blank=True, default="transparent")
94+
navbar_background = ColorField(max_length=250, blank=True, default="#000000")
9595
navbar_links_color = ColorField(max_length=250, blank=True, default="#FFFFFF")
9696
message_show_time = models.CharField(max_length=250, blank=True, default="Próximamente...")
9797
menu_links = StreamField(
@@ -233,7 +233,7 @@ class ScheduleBlock(blocks.StructBlock):
233233
class SegmentPage(Page):
234234
order = models.IntegerField(default=0)
235235
background_section = ColorField(max_length=250, blank=True, default="#FFFFFF")
236-
color_text_section = ColorField(max_length=250, blank=True, default="black")
236+
color_text_section = ColorField(max_length=250, blank=True, default="#000000")
237237
segments = StreamField(
238238
[
239239
# detail segment

0 commit comments

Comments
 (0)