From 373c412837fecb547fc2c5ab1b9bffb656d2f1f6 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Fri, 9 Sep 2016 17:23:53 +0100 Subject: [PATCH] trivial: Fix incorrectly subclassed 'save's Signed-off-by: Stephen Finucane Reviewed-by: Daniel Axtens --- patchwork/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patchwork/models.py b/patchwork/models.py index cdcd0273..217de512 100644 --- a/patchwork/models.py +++ b/patchwork/models.py @@ -415,7 +415,7 @@ class Patch(Submission): for tag in tags: self._set_tag(tag, counter[tag]) - def save(self, **kwargs): + def save(self, *args, **kwargs): if not hasattr(self, 'state') or not self.state: self.state = get_default_initial_patch_state() @@ -696,7 +696,7 @@ class EmailConfirmation(models.Model): def is_valid(self): return self.date + self.validity > datetime.datetime.now() - def save(self): + def save(self, *args, **kwargs): limit = 1 << 32 if not self.key: key = '%s%s%d' % (self.user, self.email, random.randint(0, limit)) -- 2.47.3