[website] [slideshow] clear website cache on update of a slide show

This commit is contained in:
Anand Doshi 2013-05-22 12:37:50 +05:30
parent ace9cbad9e
commit 6241012f08
2 changed files with 7 additions and 2 deletions

View File

@ -5,4 +5,9 @@ import webnotes
class DocType:
def __init__(self, d, dl):
self.doc, self.doclist = d, dl
self.doc, self.doclist = d, dl
def on_update(self):
# a slide show can be in use and any change in it should get reflected
from webnotes.webutils import clear_cache
clear_cache()

View File

@ -8,7 +8,7 @@
{% if slide.heading or slide.description %}
<div class="carousel-caption">
{% if slide.heading %}<h4>{{ slide.heading }}</h4>{% endif %}
{% if slide.heading %}<p>{{ slide.description }}</p>{% endif %}
{% if slide.description %}<p>{{ slide.description }}</p>{% endif %}
</div>
{% endif %}
</div>