summaryrefslogtreecommitdiff
path: root/archaeological_context_records/wizards.py
diff options
context:
space:
mode:
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
commit0f3229a119e53054d98c5e878a9581403628cd08 (patch)
treee07ad2e91e2544f7b2d61e8f3f653fdda26bfd52 /archaeological_context_records/wizards.py
parentcfabd636d0a6d84e8377be3e4d041b4e75ddda9a (diff)
downloadIshtar-0f3229a119e53054d98c5e878a9581403628cd08.tar.bz2
Ishtar-0f3229a119e53054d98c5e878a9581403628cd08.zip
Migrate to python 3 - Clean old migrations and some old scripts
Diffstat (limited to 'archaeological_context_records/wizards.py')
-rw-r--r--archaeological_context_records/wizards.py6
1 files changed, 3 insertions, 3 deletions
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):