diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-12-01 16:31:58 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-12-01 16:31:58 +0100 |
| commit | 808c3c28ea57adeb5f864e1204f1f33e0fda4dd6 (patch) | |
| tree | 800ea813d33b939f2c93a8c9d3cf6fa10f06a259 | |
| parent | 5a3ee19f5cc6c4ad3f6aa2ff5de5289622ab70cf (diff) | |
| download | Ishtar-808c3c28ea57adeb5f864e1204f1f33e0fda4dd6.tar.bz2 Ishtar-808c3c28ea57adeb5f864e1204f1f33e0fda4dd6.zip | |
🐛 search criteria: do not truncate site label on autocomplete (refs #6501, refs #6503)
Truncation make the search not relevant without * wildcard
| -rw-r--r-- | archaeological_operations/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_operations/views.py b/archaeological_operations/views.py index c5105973b..82fd6bad1 100644 --- a/archaeological_operations/views.py +++ b/archaeological_operations/views.py @@ -108,7 +108,7 @@ def autocomplete_archaeologicalsite(request): .distinct() .order_by("reference")[:limit] ) - data = json.dumps([{"id": site.pk, "value": str(site)[:60]} for site in sites]) + data = json.dumps([{"id": site.pk, "value": str(site)} for site in sites]) return HttpResponse(data, content_type="text/plain") |
