]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
trivial: Fix incorrectly subclassed 'save's
authorStephen Finucane <stephenfinucane@hotmail.com>
Fri, 9 Sep 2016 16:23:53 +0000 (17:23 +0100)
committerStephen Finucane <stephenfinucane@hotmail.com>
Sat, 24 Sep 2016 23:00:21 +0000 (00:00 +0100)
Signed-off-by: Stephen Finucane <stephenfinucane@hotmail.com>
Reviewed-by: Daniel Axtens <dja@axtens.net>
patchwork/models.py

index cdcd0273569de5b6f3e394efd031e4237f2a8b78..217de5121667c54577341c960cb0e97d998b4bb5 100644 (file)
@@ -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))