diff --git a/exposition/management/commands/check_url.py b/exposition/management/commands/check_url.py index 4f8e5cd3..0c6b6db4 100644 --- a/exposition/management/commands/check_url.py +++ b/exposition/management/commands/check_url.py @@ -24,7 +24,7 @@ class Command(NoArgsCommand): while slice_offset <= objects_max: print('runnig for {start}:{end}'.format(start=slice_offset, end=slice_offset + self.objects_per_cycle)) for event in qs[slice_offset:slice_offset + self.objects_per_cycle]: - if event.url != translit_with_separator(event.url): + if event.url != translit_with_separator(event.name.strip().lower()): object_ids.append(event.pk) elif event.bad_url: event.bad_url = False