Explorar o código

Remove body from content_panels on LocationPage

Scot Hacker %!s(int64=8) %!d(string=hai) anos
pai
achega
bb774cd119
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      bakerydemo/locations/models.py

+ 4 - 1
bakerydemo/locations/models.py

@@ -121,7 +121,10 @@ class LocationPage(BasePageFieldsMixin, Page):
     ]
 
     # Editor panels configuration
-    content_panels = BasePageFieldsMixin.content_panels + [
+    content_panels = [
+        FieldPanel('title', classname="full"),
+        FieldPanel('introduction', classname="full"),
+        ImageChooserPanel('image'),
         FieldPanel('address', classname="full"),
         FieldPanel('lat_long'),
         InlinePanel('hours_of_operation', label="Hours of Operation"),