Cutting stuff out.
[wolnelektury.git] / src / catalogue / models / collection.py
index 412a976..2c9a348 100644 (file)
@@ -56,11 +56,11 @@ class Collection(models.Model):
         from catalogue.models import Book
         return Book.objects.filter(self.get_query())
 
-    @cached_render('catalogue/collection_box.html')
-    def box(self):
-        return {
-            'collection': self
-        }
+    def get_5_books(self):
+        return self.get_books()[:5]
+
+    def example3(self):
+        return self.get_books()[:3]
 
     def clear_cache(self):
         clear_cached_renders(self.box)