Skip to content

Commit 4523cf6

Browse files
asottile-sentryChristinarlong
authored andcommitted
ref: fix local reassignment of model class union (#74956)
<!-- Describe your PR here. -->
1 parent 8129ec5 commit 4523cf6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sentry/deletions/defaults/project.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def get_child_relations(self, instance):
4747
]
4848

4949
# in bulk
50-
for m in (
50+
for m1 in (
5151
Activity,
5252
AlertRuleProjects,
5353
EnvironmentProject,
@@ -81,7 +81,7 @@ def get_child_relations(self, instance):
8181
DiscoverSavedQueryProject,
8282
IncidentProject,
8383
):
84-
relations.append(ModelRelation(m, {"project_id": instance.id}, BulkModelDeletionTask))
84+
relations.append(ModelRelation(m1, {"project_id": instance.id}, BulkModelDeletionTask))
8585

8686
relations.append(ModelRelation(Monitor, {"project_id": instance.id}))
8787
relations.append(ModelRelation(Group, {"project_id": instance.id}))
@@ -95,11 +95,11 @@ def get_child_relations(self, instance):
9595

9696
# Release needs to handle deletes after Group is cleaned up as the foreign
9797
# key is protected
98-
for m in (
98+
for m2 in (
9999
ReleaseProject,
100100
ReleaseProjectEnvironment,
101101
EventAttachment,
102102
ProjectDebugFile,
103103
):
104-
relations.append(ModelRelation(m, {"project_id": instance.id}, ModelDeletionTask))
104+
relations.append(ModelRelation(m2, {"project_id": instance.id}, ModelDeletionTask))
105105
return relations

0 commit comments

Comments
 (0)