comparison gpp/bulletins/models.py @ 182:5c889b587416

Fixing #64. Updating all model save() methods to use *args and **kwargs. Django 1.2 has new keyword arguments.
author Brian Neal <bgneal@gmail.com>
date Sun, 28 Mar 2010 21:41:11 +0000
parents e249b5f9d180
children 65016249bf35
comparison
equal deleted inserted replaced
181:500e5875a306 182:5c889b587416
36 ordering = ('-start_date', ) 36 ordering = ('-start_date', )
37 37
38 def __unicode__(self): 38 def __unicode__(self):
39 return self.title 39 return self.title
40 40
41 def save(self, force_insert=False, force_update=False): 41 def save(self, *args, **kwargs):
42 super(Bulletin, self).save(force_insert, force_update) 42 super(Bulletin, self).save(*args, **kwargs)
43 cache.delete('home_bulletins') 43 cache.delete('home_bulletins')
44 44
45 45