summaryrefslogtreecommitdiff
path: root/django/contrib
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2009-06-03 03:18:48 +0000
committerAlex Gaynor <alex.gaynor@gmail.com>2009-06-03 03:18:48 +0000
commitb1f70d9e53f4256cf82594a1a44428d8e64cb23d (patch)
tree7fbd8a240cdae7255c8ff3a8e24325b11dbb7256 /django/contrib
parent23da5c0ac1105df44de23b2719f27e6362db93f6 (diff)
downloaddjango-b1f70d9e53f4256cf82594a1a44428d8e64cb23d.tar.gz
[soc2009/multidb] Updated the transaction decorators for use with multiple DB.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@10911 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/contrib')
-rw-r--r--django/contrib/comments/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/comments/models.py b/django/contrib/comments/models.py
index 7dd4f81a4c..f8891846fe 100644
--- a/django/contrib/comments/models.py
+++ b/django/contrib/comments/models.py
@@ -79,10 +79,10 @@ class Comment(BaseCommentAbstractModel):
def __unicode__(self):
return "%s: %s..." % (self.name, self.comment[:50])
- def save(self, force_insert=False, force_update=False):
+ def save(self, *args, **kwargs):
if self.submit_date is None:
self.submit_date = datetime.datetime.now()
- super(Comment, self).save(force_insert, force_update)
+ super(Comment, self).save(*args, **kwargs)
def _get_userinfo(self):
"""