diff gpp/membermap/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 13d052fbe4f1
children 4532ed27bed8
line wrap: on
line diff
--- a/gpp/membermap/models.py	Sun Mar 28 01:07:47 2010 +0000
+++ b/gpp/membermap/models.py	Sun Mar 28 21:41:11 2010 +0000
@@ -27,7 +27,7 @@
         ordering = ('-date_updated', )
         verbose_name_plural = 'map entries'
 
-    def save(self, force_insert=False, force_update=False):
+    def save(self, *args, **kwargs):
         msg = render_to_string('membermap/markdown.html', {
             'user': self.user,
             'msg': site_markup(self.message)}).strip()
@@ -37,5 +37,5 @@
             'lon': '%10.6f' % self.lon,
             'message': msg,
             })
-        super(MapEntry, self).save(force_insert, force_update)
+        super(MapEntry, self).save(*args, **kwargs)