fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cutting stuff out.
[wolnelektury.git]
/
src
/
catalogue
/
models
/
fragment.py
diff --git
a/src/catalogue/models/fragment.py
b/src/catalogue/models/fragment.py
index
9ee48c9
..
7eca855
100644
(file)
--- a/
src/catalogue/models/fragment.py
+++ b/
src/catalogue/models/fragment.py
@@
-39,18
+39,6
@@
class Fragment(models.Model):
"""Returns short version of the fragment."""
return self.short_text if self.short_text else self.text
"""Returns short version of the fragment."""
return self.short_text if self.short_text else self.text
- @cached_render('catalogue/fragment_short.html')
- def midi_box(self):
- return {'fragment': self}
-
- @cached_render('catalogue/fragment_promo.html')
- def promo_box(self):
- return {'fragment': self}
-
@property
def themes(self):
return self.tags.filter(category='theme')
@property
def themes(self):
return self.tags.filter(category='theme')
-
- def clear_cache(self):
- clear_cached_renders(self.midi_box)
- clear_cached_renders(self.promo_box)