diff mbox

[13/13] trivial: Fix incorrectly subclassed 'save's

Message ID BLU437-SMTP260267E9A7A5C6EF8F90BCA3F40@phx.gbl
State Accepted
Headers show

Commit Message

Stephen Finucane Sept. 19, 2016, 10:39 p.m. UTC
Signed-off-by: Stephen Finucane <stephenfinucane@hotmail.com>
---
 patchwork/models.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/patchwork/models.py b/patchwork/models.py
index e067327..96805d1 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()
 
@@ -686,7 +686,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))