Skip to content

Commit

Permalink
fix filter
Browse files Browse the repository at this point in the history
  • Loading branch information
rjo100 committed Jul 7, 2023
1 parent ed6df49 commit 370ddd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sentry/migrations/0507_slugify_invalid_monitors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("-")

Expand Down

0 comments on commit 370ddd3

Please sign in to comment.