From 463e3e1c56de4e11542aea94d152b1053c9445c7 Mon Sep 17 00:00:00 2001 From: Alexander Burdeiny Date: Sat, 2 Jul 2016 14:11:42 +0300 Subject: [PATCH] check_url command fix --- exposition/management/commands/check_url.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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