Skip to content

Commit

Permalink
Adjust arguments for Model.save() overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Jan 6, 2025
1 parent 0c56cf2 commit 9307e5a
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions tcms/management/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 9307e5a

Please sign in to comment.