Commit 17b15d97 by benjaoming

Merge pull request #124 from SacNaturalFoods/master

fixed _clear_ancestor_cache call
parents bc57765b 3add05ad
......@@ -345,7 +345,7 @@ def _clear_ancestor_cache(article):
ancestor.article.clear_cache()
def on_article_save_clear_cache(instance, **kwargs):
_clear_ancestor_cache(instance.article)
_clear_ancestor_cache(instance)
post_save.connect(on_article_save_clear_cache, Article)
def on_article_delete_clear_cache(instance, **kwargs):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment