Mercurial > public > sg101
diff gpp/bulletins/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 | 5c889b587416 |
children |
line wrap: on
line diff
--- a/gpp/bulletins/models.py Sun May 09 20:53:34 2010 +0000 +++ b/gpp/bulletins/models.py Mon May 10 02:58:19 2010 +0000 @@ -5,7 +5,6 @@ import datetime from django.db import models from django.db.models import Q -from django.core.cache import cache class BulletinManager(models.Manager): @@ -37,9 +36,3 @@ def __unicode__(self): return self.title - - def save(self, *args, **kwargs): - super(Bulletin, self).save(*args, **kwargs) - cache.delete('home_bulletins') - -