From 370ddd3aa89a57cee7b5841fcb9af1a1ce0e01db Mon Sep 17 00:00:00 2001 From: Richard Ortenberg Date: Fri, 7 Jul 2023 10:48:45 -0700 Subject: [PATCH] fix filter --- src/sentry/migrations/0507_slugify_invalid_monitors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sentry/migrations/0507_slugify_invalid_monitors.py b/src/sentry/migrations/0507_slugify_invalid_monitors.py index a2758b0cd9ddd6..ebd242ccf7e6dd 100644 --- a/src/sentry/migrations/0507_slugify_invalid_monitors.py +++ b/src/sentry/migrations/0507_slugify_invalid_monitors.py @@ -11,7 +11,7 @@ def migrate_monitor_slugs(apps, schema_editor): MAX_SLUG_LENGTH = 50 - for monitor in RangeQuerySetWrapperWithProgressBar(Monitor.objects.filter()): + for monitor in RangeQuerySetWrapperWithProgressBar(Monitor.objects.all()): monitor_slug = monitor.slug slugified = slugify(monitor_slug)[:MAX_SLUG_LENGTH].strip("-")