From: Stephen Finucane Date: Fri, 9 Sep 2016 16:23:53 +0000 (+0100) Subject: trivial: Fix incorrectly subclassed 'save's X-Git-Tag: v2.0.0-rc1~225 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=373c412837fecb547fc2c5ab1b9bffb656d2f1f6;p=thirdparty%2Fpatchwork.git trivial: Fix incorrectly subclassed 'save's Signed-off-by: Stephen Finucane Reviewed-by: Daniel Axtens --- 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))