diff --git a/requirements/base.txt b/requirements/base.txt index 9603f184fd..785b9a61c9 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -4,7 +4,7 @@ allpairspy==2.5.1 bleach==6.2.0 bleach-allowlist==1.0.3 defusedxml==0.7.1 -Django==5.0.10 +Django==5.1.4 django-attachments==1.11 django-colorfield==0.11.0 django-contrib-comments==2.2.0 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, diff --git a/tcms/testplans/migrations/0005_squashed.py b/tcms/testplans/migrations/0005_squashed.py index 2849d41f8b..6770c9f223 100644 --- a/tcms/testplans/migrations/0005_squashed.py +++ b/tcms/testplans/migrations/0005_squashed.py @@ -207,10 +207,6 @@ class Migration(migrations.Migration): on_delete=models.deletion.CASCADE, to="testplans.PlanType" ), ), - migrations.AlterIndexTogether( - name="testplan", - index_together={("product", "plan_id")}, - ), migrations.RunPython(forwards_add_initial_data, reverse_add_initial_data), migrations.CreateModel( name="HistoricalTestPlan", diff --git a/tcms/testplans/migrations/0008_remove_autofield.py b/tcms/testplans/migrations/0008_remove_autofield.py index 7236665f85..39825647b6 100644 --- a/tcms/testplans/migrations/0008_remove_autofield.py +++ b/tcms/testplans/migrations/0008_remove_autofield.py @@ -32,10 +32,6 @@ class Migration(migrations.Migration): field=models.BooleanField(db_index=True, default=True), ), # drop TestPlan.plan_id in favor of TestPlan.id - migrations.AlterIndexTogether( - name="testplan", - index_together=set(), - ), migrations.RenameField( model_name="testplan", old_name="plan_id",