From 1885e0ab4543f51c82fd9d48b433fe8aa45d23ac Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Mon, 6 Jan 2025 12:20:30 +0200 Subject: [PATCH] Adjust arguments for Model.save() overrides --- tcms/management/models.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/tcms/management/models.py b/tcms/management/models.py index c2afbfec7b..7a112270bb 100755 --- a/tcms/management/models.py +++ b/tcms/management/models.py @@ -26,9 +26,15 @@ def __str__(self): return self.name def save( - self, force_insert=False, force_update=False, using=None, update_fields=None + self, + *args, + force_insert=False, + force_update=False, + using=None, + update_fields=None ): super().save( + *args, force_insert=force_insert, force_update=force_update, using=using, @@ -97,9 +103,15 @@ def __str__(self): return self.value def save( - self, force_insert=False, force_update=False, using=None, update_fields=None + self, + *args, + force_insert=False, + force_update=False, + using=None, + update_fields=None ): super().save( + *args, force_insert=force_insert, force_update=force_update, using=using,