From: Guillaume Pellerin Date: Mon, 25 Jan 2021 17:00:32 +0000 (+0100) Subject: bugfix X-Git-Tag: 0.9-tc~4 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=7cea053dea6579c48e6820c391b259099fffa4b3;p=teleforma.git bugfix --- diff --git a/teleforma/management/commands/teleforma-pull-courses.py b/teleforma/management/commands/teleforma-pull-courses.py index 488b8970..84561fd1 100644 --- a/teleforma/management/commands/teleforma-pull-courses.py +++ b/teleforma/management/commands/teleforma-pull-courses.py @@ -20,3 +20,7 @@ class Command(BaseCommand): organization_name = args[-1] view = CourseListView() view.pull(organization_name) + + for course_type in CourseType.objects.all(): + if 'é' in course_type.name: + course_type.delete()