summaryrefslogtreecommitdiff
path: root/archaeological_context_records/wizards.py
diff options
context:
space:
mode:
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):