Ver Fonte

Reformat code

Sage Abdullah há 2 dias atrás
pai
commit
8315e325d0

+ 22 - 10
bakerydemo/base/migrations/0025_homepage_featured_help_text.py

@@ -6,23 +6,35 @@ from django.db import migrations, models
 class Migration(migrations.Migration):
 
     dependencies = [
-        ('base', '0024_alter_formpage_body_alter_gallerypage_body_and_more'),
+        ("base", "0024_alter_formpage_body_alter_gallerypage_body_and_more"),
     ]
 
     operations = [
         migrations.AlterField(
-            model_name='homepage',
-            name='featured_section_1_title',
-            field=models.CharField(blank=True, help_text='Title to display above the featured section 1', max_length=255),
+            model_name="homepage",
+            name="featured_section_1_title",
+            field=models.CharField(
+                blank=True,
+                help_text="Title to display above the featured section 1",
+                max_length=255,
+            ),
         ),
         migrations.AlterField(
-            model_name='homepage',
-            name='featured_section_2_title',
-            field=models.CharField(blank=True, help_text='Title to display above the featured section 2', max_length=255),
+            model_name="homepage",
+            name="featured_section_2_title",
+            field=models.CharField(
+                blank=True,
+                help_text="Title to display above the featured section 2",
+                max_length=255,
+            ),
         ),
         migrations.AlterField(
-            model_name='homepage',
-            name='featured_section_3_title',
-            field=models.CharField(blank=True, help_text='Title to display above the featured section 3', max_length=255),
+            model_name="homepage",
+            name="featured_section_3_title",
+            field=models.CharField(
+                blank=True,
+                help_text="Title to display above the featured section 3",
+                max_length=255,
+            ),
         ),
     ]

+ 9 - 3
bakerydemo/base/models.py

@@ -326,7 +326,9 @@ class HomePage(Page):
     # Each list their children items that we access via the children function
     # that we define on the individual Page models e.g. BlogIndexPage
     featured_section_1_title = models.CharField(
-        blank=True, max_length=255, help_text="Title to display above the featured section 1"
+        blank=True,
+        max_length=255,
+        help_text="Title to display above the featured section 1",
     )
     featured_section_1 = models.ForeignKey(
         "wagtailcore.Page",
@@ -340,7 +342,9 @@ class HomePage(Page):
     )
 
     featured_section_2_title = models.CharField(
-        blank=True, max_length=255, help_text="Title to display above the featured section 2"
+        blank=True,
+        max_length=255,
+        help_text="Title to display above the featured section 2",
     )
     featured_section_2 = models.ForeignKey(
         "wagtailcore.Page",
@@ -354,7 +358,9 @@ class HomePage(Page):
     )
 
     featured_section_3_title = models.CharField(
-        blank=True, max_length=255, help_text="Title to display above the featured section 3"
+        blank=True,
+        max_length=255,
+        help_text="Title to display above the featured section 3",
     )
     featured_section_3 = models.ForeignKey(
         "wagtailcore.Page",