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 /archaeological_context_records/views.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 'archaeological_context_records/views.py')
-rw-r--r-- | archaeological_context_records/views.py | 2 |
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') |