Mercurial > public > sg101
diff gpp/weblinks/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 | 952e05cb3d80 |
children | 046e6ef0ff45 |
line wrap: on
line diff
--- a/gpp/weblinks/models.py Sun Mar 28 01:07:47 2010 +0000 +++ b/gpp/weblinks/models.py Sun Mar 28 21:41:11 2010 +0000 @@ -71,12 +71,12 @@ objects = FlaggedLinkManager() - def save(self, force_insert = False, force_update = False): + def save(self, *args, **kwargs): if self.approved: self.link.delete() self.delete() else: - super(FlaggedLink, self).save(force_insert, force_update) + super(FlaggedLink, self).save(*args, **kwargs) def url(self): return self.link.url