Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update django to 5.1.4 #3856

Merged
merged 3 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
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
4 changes: 0 additions & 4 deletions tcms/testplans/migrations/0005_squashed.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 0 additions & 4 deletions tcms/testplans/migrations/0008_remove_autofield.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading