Browse Source

Allow people to be accessible via template for blog post

Edd Baldry 8 năm trước cách đây
mục cha
commit
3533a04154
1 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. 5 5
      bakerydemo/blog/models.py

+ 5 - 5
bakerydemo/blog/models.py

@@ -72,12 +72,12 @@ class BlogPage(Page):
         FieldPanel('tags'),
     ]
 
-    # def people(self):
-    #     people = [
-    #          n.people for n in self.person_blog_relationship.all()
-    #     ]
+    def people(self):
+        people = [
+             n.people for n in self.person_blog_relationship.all()
+        ]
 
-    #     return people
+        return people
 
     parent_page_types = [
        'BlogIndexPage'