summaryrefslogtreecommitdiff
path: root/archaeological_context_records/views.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/views.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/views.py')
-rw-r--r--archaeological_context_records/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_context_records/views.py b/archaeological_context_records/views.py
index 55cacaf5d..73c77fa48 100644
--- a/archaeological_context_records/views.py
+++ b/archaeological_context_records/views.py
@@ -70,7 +70,7 @@ def autocomplete_contextrecord(request):
.filter(query).order_by('parcel__section', 'parcel__parcel_number',
'label')[:limit]
data = json.dumps([{'id': item.pk,
- 'value': unicode(item)[:60]}
+ 'value': str(item)[:60]}
for item in items])
return HttpResponse(data, content_type='text/plain')