mirror of
https://github.com/django/django.git
synced 2025-07-05 02:09:13 +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:
parent
2f2cfac142
commit
c233618d4b
@ -185,7 +185,7 @@ class CommentFlag(models.Model):
|
||||
return "%s flag of comment ID %s by %s" % \
|
||||
(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:
|
||||
self.flag_date = datetime.datetime.now()
|
||||
super(CommentFlag, self).save(force_insert, force_update)
|
||||
super(CommentFlag, self).save(*args, **kwargs)
|
||||
|
Loading…
x
Reference in New Issue
Block a user