Mercurial > public > sg101
diff gpp/comments/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 | 91a01b8b5885 |
children | 254db4cb6a86 |
line wrap: on
line diff
--- a/gpp/comments/models.py Sun Mar 28 01:07:47 2010 +0000 +++ b/gpp/comments/models.py Sun Mar 28 21:41:11 2010 +0000 @@ -51,9 +51,9 @@ def __unicode__(self): return u'%s: %s...' % (self.user.username, self.comment[:50]) - def save(self, force_insert=False, force_update=False): + def save(self, *args, **kwargs): self.html = site_markup(self.comment) - super(Comment, self).save(force_insert, force_update) + super(Comment, self).save(*args, **kwargs) def get_absolute_url(self): return self.get_content_object_url() + ('#c%s' % self.id)