X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/f3872a90b13a88be0473e3ce3126240d0d5cbb74..f16fb0040e6beb395ffea1ac252658ab0b8ac3f7:/src/catalogue/models/collection.py diff --git a/src/catalogue/models/collection.py b/src/catalogue/models/collection.py index f1a582cbe..8510b2cb1 100644 --- a/src/catalogue/models/collection.py +++ b/src/catalogue/models/collection.py @@ -59,6 +59,9 @@ class Collection(models.Model): def get_5_books(self): return self.get_books()[:5] + def example3(self): + return self.get_books()[:3] + @cached_render('catalogue/collection_box.html') def box(self): return {