1
0
mirror of https://github.com/django/django.git synced 2025-07-05 10:19:20 +00:00

[soc2009/multidb] Correct the type signature on CommentFlag.save

git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@10918 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Alex Gaynor 2009-06-03 20:54:54 +00:00
parent 2f2cfac142
commit c233618d4b

View File

@ -185,7 +185,7 @@ class CommentFlag(models.Model):
return "%s flag of comment ID %s by %s" % \ return "%s flag of comment ID %s by %s" % \
(self.flag, self.comment_id, self.user.username) (self.flag, self.comment_id, self.user.username)
def save(self, force_insert=False, force_update=False): def save(self, *args, **kwargs):
if self.flag_date is None: if self.flag_date is None:
self.flag_date = datetime.datetime.now() self.flag_date = datetime.datetime.now()
super(CommentFlag, self).save(force_insert, force_update) super(CommentFlag, self).save(*args, **kwargs)