From 0f3229a119e53054d98c5e878a9581403628cd08 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 --- archaeological_context_records/wizards.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'archaeological_context_records/wizards.py') diff --git a/archaeological_context_records/wizards.py b/archaeological_context_records/wizards.py index 327aedb5b..f0f11a1f3 100644 --- a/archaeological_context_records/wizards.py +++ b/archaeological_context_records/wizards.py @@ -20,7 +20,7 @@ from django.core.exceptions import ObjectDoesNotExist from django.utils.translation import ugettext_lazy as _ -import models +from . import models from ishtar_common.forms import reverse_lazy from ishtar_common.wizards import Wizard, DeletionWizard, SearchWizard @@ -78,7 +78,7 @@ class RecordWizard(Wizard): operation = self.get_current_operation() if not operation or self.steps.current.startswith('selec-'): return context - context['reminders'] = ((_("Operation"), unicode(operation)),) + context['reminders'] = ((_("Operation"), str(operation)),) return context def get_form(self, step=None, data=None, files=None): @@ -130,7 +130,7 @@ class RecordWizard(Wizard): obj = self.get_current_object() if obj and obj.pk: q = q.exclude(pk=obj.pk) - return [(cr.pk, unicode(cr)) for cr in q.all()] + return [(cr.pk, str(cr)) for cr in q.all()] class RecordModifWizard(RecordWizard): -- cgit v1.2.3