Mercurial > public > sg101
diff gpp/downloads/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 | 48621ba5c385 |
children | 0e4961833cdf |
line wrap: on
line diff
--- a/gpp/downloads/models.py Sun Mar 28 01:07:47 2010 +0000 +++ b/gpp/downloads/models.py Sun Mar 28 21:41:11 2010 +0000 @@ -72,9 +72,9 @@ def get_absolute_url(self): return ('downloads-details', [str(self.id)]) - def save(self, force_insert=False, force_update=False): + def save(self, *args, **kwargs): self.html = site_markup(self.description) - super(Download, self).save(force_insert, force_update) + super(Download, self).save(*args, **kwargs) def vote(self, vote_value): """receives a vote_value and updates internal score accordingly"""