Skip to content

Commit d8f7510

Browse files
authored
fix(backup): Also filter UserOption by key (#69027)
This fixes the fix at #68943.
1 parent 5130e3f commit d8f7510

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/models/options/user_option.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def write_relocation_import(
245245
# not duplicated on import.
246246
if self.organization_id is None and self.project_id is None:
247247
colliding_global_user_option = self.objects.filter(
248-
user=self.user, organization_id__isnull=True, project_id__isnull=True
248+
user=self.user, key=self.key, organization_id__isnull=True, project_id__isnull=True
249249
).first()
250250
if colliding_global_user_option is not None:
251251
return None

0 commit comments

Comments
 (0)