def get_5_books(self):
return self.get_books()[:5]
- @cached_render('catalogue/collection_box.html')
- def box(self):
- return {
- 'collection': self
- }
+ def example3(self):
+ return self.get_books()[:3]
def clear_cache(self):
clear_cached_renders(self.box)