Преглед изворни кода

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"),