Mercurial > public > sg101
diff gpp/news/models.py @ 213:65016249bf35
See #31; undid attempts to clear template tag caching when saving news and bulletins, as we don't know the cache key (it is mangled).
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 10 May 2010 02:58:19 +0000 |
parents | b4305e18d3af |
children | 6dbb8faef085 |
line wrap: on
line diff
--- a/gpp/news/models.py Sun May 09 20:53:34 2010 +0000 +++ b/gpp/news/models.py Mon May 10 02:58:19 2010 +0000 @@ -5,7 +5,6 @@ import datetime from django.db import models from django.contrib.auth.models import User -from django.core.cache import cache from tagging.fields import TagField @@ -75,8 +74,3 @@ now = datetime.datetime.now() delta = now - self.date_submitted return self.allow_comments and delta.days < 30 - - def save(self, *args, **kwargs): - super(Story, self).save(*args, **kwargs) - cache.delete('home_news') -