浏览代码

Fix overlapping panels on Person name fields. Fixes #209

Matt Westcott 6 年之前
父节点
当前提交
1fdf3411db
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      bakerydemo/base/models.py

+ 6 - 2
bakerydemo/base/models.py

@@ -50,8 +50,12 @@ class People(index.Indexed, ClusterableModel):
     )
 
     panels = [
-        FieldPanel('first_name', classname="col6"),
-        FieldPanel('last_name', classname="col6"),
+        MultiFieldPanel([
+            FieldRowPanel([
+                FieldPanel('first_name', classname="col6"),
+                FieldPanel('last_name', classname="col6"),
+            ])
+        ], "Name"),
         FieldPanel('job_title'),
         ImageChooserPanel('image')
     ]