Permalink
Browse files

add the url of DynamicPages to objects in index for ListPages

  • Loading branch information...
1 parent 4e185e4 commit dcae6992bdb9898049d7a740c85569c8b2361595 @joshourisman committed Feb 10, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 rabbitfish/pages.py
View
@@ -90,7 +90,9 @@ def render_to_string(self):
index = []
for i in range(self.num_to_index):
- index.append(content_list.__next__())
+ page = content_list.__next__()
+ page['url'] = self.get_page_url(page)
+ index.append(page)
return template.render({'object_list': index})
def render_to_output(self, dynamic_pages):

0 comments on commit dcae699

Please sign in to comment.