diff gpp/messages/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 272d3a8c98e8
line wrap: on
line diff
--- a/gpp/messages/models.py	Sun Mar 28 01:07:47 2010 +0000
+++ b/gpp/messages/models.py	Sun Mar 28 21:41:11 2010 +0000
@@ -61,11 +61,11 @@
             return True
         return False
 
-    def save(self, force_insert = False, force_update = False):
+    def save(self, *args, **kwargs):
         if not self.id:
             self.send_date = datetime.datetime.now()
         self.html = site_markup(self.message)
-        super(Message, self).save(force_insert, force_update)
+        super(Message, self).save(*args, **kwargs)
 
     @models.permalink
     def get_absolute_url(self):