Ver código fonte

Support for the classname="full" has been removed

Nick Moreton 2 anos atrás
pai
commit
ec0715d857

+ 4 - 4
bakerydemo/base/models.py

@@ -184,7 +184,7 @@ class StandardPage(Page):
         BaseStreamBlock(), verbose_name="Page body", blank=True, use_json_field=True
     )
     content_panels = Page.content_panels + [
-        FieldPanel("introduction", classname="full"),
+        FieldPanel("introduction"),
         FieldPanel("body"),
         FieldPanel("image"),
     ]
@@ -303,7 +303,7 @@ class HomePage(Page):
         MultiFieldPanel(
             [
                 FieldPanel("image"),
-                FieldPanel("hero_text", classname="full"),
+                FieldPanel("hero_text"),
                 MultiFieldPanel(
                     [
                         FieldPanel("hero_cta"),
@@ -382,7 +382,7 @@ class GalleryPage(Page):
     )
 
     content_panels = Page.content_panels + [
-        FieldPanel("introduction", classname="full"),
+        FieldPanel("introduction"),
         FieldPanel("body"),
         FieldPanel("image"),
         FieldPanel("collection"),
@@ -423,7 +423,7 @@ class FormPage(AbstractEmailForm):
         FieldPanel("image"),
         FieldPanel("body"),
         InlinePanel("form_fields", label="Form fields"),
-        FieldPanel("thank_you_text", classname="full"),
+        FieldPanel("thank_you_text"),
         MultiFieldPanel(
             [
                 FieldRowPanel(

+ 3 - 3
bakerydemo/blog/models.py

@@ -72,8 +72,8 @@ class BlogPage(Page):
     date_published = models.DateField("Date article published", blank=True, null=True)
 
     content_panels = Page.content_panels + [
-        FieldPanel("subtitle", classname="full"),
-        FieldPanel("introduction", classname="full"),
+        FieldPanel("subtitle"),
+        FieldPanel("introduction"),
         FieldPanel("image"),
         FieldPanel("body"),
         FieldPanel("date_published"),
@@ -140,7 +140,7 @@ class BlogIndexPage(RoutablePageMixin, Page):
     )
 
     content_panels = Page.content_panels + [
-        FieldPanel("introduction", classname="full"),
+        FieldPanel("introduction"),
         FieldPanel("image"),
     ]
 

+ 2 - 2
bakerydemo/breads/models.py

@@ -118,7 +118,7 @@ class BreadPage(Page):
     ingredients = ParentalManyToManyField("BreadIngredient", blank=True)
 
     content_panels = Page.content_panels + [
-        FieldPanel("introduction", classname="full"),
+        FieldPanel("introduction"),
         FieldPanel("image"),
         FieldPanel("body"),
         FieldPanel("origin"),
@@ -162,7 +162,7 @@ class BreadsIndexPage(Page):
     )
 
     content_panels = Page.content_panels + [
-        FieldPanel("introduction", classname="full"),
+        FieldPanel("introduction"),
         FieldPanel("image"),
     ]
 

+ 4 - 4
bakerydemo/locations/models.py

@@ -97,7 +97,7 @@ class LocationsIndexPage(Page):
         return context
 
     content_panels = Page.content_panels + [
-        FieldPanel("introduction", classname="full"),
+        FieldPanel("introduction"),
         FieldPanel("image"),
     ]
 
@@ -141,11 +141,11 @@ class LocationPage(Page):
 
     # Fields to show to the editor in the admin view
     content_panels = [
-        FieldPanel("title", classname="full"),
-        FieldPanel("introduction", classname="full"),
+        FieldPanel("title"),
+        FieldPanel("introduction"),
         FieldPanel("image"),
         FieldPanel("body"),
-        FieldPanel("address", classname="full"),
+        FieldPanel("address"),
         FieldPanel("lat_long"),
         InlinePanel("hours_of_operation", label="Hours of Operation"),
     ]