浏览代码

Merge pull request #112 from wagtail/111_rem_body_locations

Remove body from content_panels on LocationPage
Scot Hacker 8 年之前
父节点
当前提交
aebef19229
共有 1 个文件被更改,包括 4 次插入1 次删除
  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"),