From 07e3e2e9c3da9f05634a45f65723504c229f2baa Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 18 May 2022 16:23:02 +0200 Subject: Migration to Django 2.2 - many fixes - remove redondant permissions - fix missing kwargs for widget and form fields - fix default to callable for model field - quick and dirty fix for datepicker - is_authenticated() -> is_authenticated - fix registration urls - remove six usage (no more python2) --- ishtar_common/management/commands/media_clean_unused.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ishtar_common/management') diff --git a/ishtar_common/management/commands/media_clean_unused.py b/ishtar_common/management/commands/media_clean_unused.py index 33237c1c7..f09cc9e9a 100644 --- a/ishtar_common/management/commands/media_clean_unused.py +++ b/ishtar_common/management/commands/media_clean_unused.py @@ -7,7 +7,6 @@ https://github.com/akolpakov/django-unused-media import os -import six.moves from django.conf import settings from django.core.management.base import BaseCommand @@ -89,7 +88,7 @@ class Command(BaseCommand): # ask user question = 'Are you sure you want to remove {} unused files? (y/N)'.format(len(unused_media)) - if six.moves.input(question).upper() != 'Y': + if input(question).upper() != 'Y': self.info('Interrupted by user. Exit.') return -- cgit v1.2.3