Kaynağa Gözat

Merge pull request #112 from wagtail/111_rem_body_locations

Remove body from content_panels on LocationPage
Scot Hacker 8 yıl önce
ebeveyn
işleme
aebef19229
1 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  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"),