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

Stephen Finucane stephenfinucane at hotmail.com
Tue Sep 20 08:39:01 AEST 2016


Signed-off-by: Stephen Finucane <stephenfinucane at hotmail.com>
---
 patchwork/models.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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))
-- 
2.7.4



More information about the Patchwork mailing list