Browse Source

Allow people to be accessible via template for blog post

Edd Baldry 8 years ago
parent
commit
3533a04154
1 changed files with 5 additions and 5 deletions
  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'