2
0
Эх сурвалжийг харах

Allow people to be accessible via template for blog post

Edd Baldry 8 жил өмнө
parent
commit
3533a04154

+ 5 - 5
bakerydemo/blog/models.py

@@ -72,12 +72,12 @@ class BlogPage(Page):
         FieldPanel('tags'),
         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 = [
     parent_page_types = [
        'BlogIndexPage'
        'BlogIndexPage'