summaryrefslogtreecommitdiff
path: root/ishtar_common/management
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2022-05-18 16:23:02 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-12-12 12:20:58 +0100
commit07e3e2e9c3da9f05634a45f65723504c229f2baa (patch)
tree7e3ea0f3306eea50e9f95a7c90b397c5515e97fb /ishtar_common/management
parent3b671732319aa14f194821a8f547ae280e1e0648 (diff)
downloadIshtar-07e3e2e9c3da9f05634a45f65723504c229f2baa.tar.bz2
Ishtar-07e3e2e9c3da9f05634a45f65723504c229f2baa.zip
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)
Diffstat (limited to 'ishtar_common/management')
-rw-r--r--ishtar_common/management/commands/media_clean_unused.py3
1 files changed, 1 insertions, 2 deletions
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