From 86c03a98d11e93880b4568776e0939113a92a707 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 27 Feb 2019 20:44:52 +0100 Subject: Migrate to python 3 - Clean old migrations and some old scripts --- ishtar_common/management/commands/generate_merge_candidates.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ishtar_common/management/commands/generate_merge_candidates.py') diff --git a/ishtar_common/management/commands/generate_merge_candidates.py b/ishtar_common/management/commands/generate_merge_candidates.py index a4aa87f38..106ce8e13 100644 --- a/ishtar_common/management/commands/generate_merge_candidates.py +++ b/ishtar_common/management/commands/generate_merge_candidates.py @@ -24,13 +24,14 @@ from django.core.exceptions import ObjectDoesNotExist import ishtar_common.models as models + class Command(BaseCommand): args = '' help = 'Regenerate merge candidates' def handle(self, *args, **options): for model in [models.Person, models.Organization]: - sys.stdout.write('\n* %s treatment\n' % unicode(model)) + sys.stdout.write('\n* %s treatment\n' % str(model)) q = model.objects total = q.count() for idx, item in enumerate(q.all()): -- cgit v1.2.3