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_finds/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_finds/views.py')
-rw-r--r-- | archaeological_finds/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_finds/views.py b/archaeological_finds/views.py index 8d46866be..4bd67e441 100644 --- a/archaeological_finds/views.py +++ b/archaeological_finds/views.py @@ -114,7 +114,7 @@ def autocomplete_treatmentfile(request): query = query & extra limit = 20 files = models.TreatmentFile.objects.filter(query)[:limit] - data = json.dumps([{'id': file.pk, 'value': unicode(file)} + data = json.dumps([{'id': file.pk, 'value': str(file)} for file in files]) return HttpResponse(data, content_type='text/plain') |