X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/94a4fcc7ab9e1713dc2defc8b35c875fc90f6fa5..a3b153ea6e30da275edf3e34b8d2f8ca1bb436cc:/src/catalogue/models/fragment.py diff --git a/src/catalogue/models/fragment.py b/src/catalogue/models/fragment.py index fe9355a8a..7eca8556f 100644 --- a/src/catalogue/models/fragment.py +++ b/src/catalogue/models/fragment.py @@ -39,13 +39,6 @@ class Fragment(models.Model): """Returns short version of the fragment.""" return self.short_text if self.short_text else self.text - @cached_render('catalogue/fragment_promo.html') - def promo_box(self): - return {'fragment': self} - @property def themes(self): return self.tags.filter(category='theme') - - def clear_cache(self): - clear_cached_renders(self.promo_box)