diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-02-27 20:44:52 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-06-17 13:21:27 +0200 |
commit | 86c03a98d11e93880b4568776e0939113a92a707 (patch) | |
tree | e07ad2e91e2544f7b2d61e8f3f653fdda26bfd52 /ishtar_common/management/commands/generate_merge_candidates.py | |
parent | 52f442699a72ff5d0341a7d15d5b966a3cc2bd60 (diff) | |
download | Ishtar-86c03a98d11e93880b4568776e0939113a92a707.tar.bz2 Ishtar-86c03a98d11e93880b4568776e0939113a92a707.zip |
Migrate to python 3 - Clean old migrations and some old scripts
Diffstat (limited to 'ishtar_common/management/commands/generate_merge_candidates.py')
-rw-r--r-- | ishtar_common/management/commands/generate_merge_candidates.py | 3 |
1 files changed, 2 insertions, 1 deletions
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()): |