diff options
| -rw-r--r-- | CHANGES.md | 1 | ||||
| -rw-r--r-- | archaeological_finds/views.py | 2 | 
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGES.md b/CHANGES.md index 554e1bbbd..6068371fb 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -10,6 +10,7 @@ Ishtar changelog  - Commands: manage update search vector with maintenance script  - utils: adapt to v4 OSM relations importer  - syndication ui: better color for external sources +- Search: sort by ID by default  v4.0.32 - 2022-12-12 diff --git a/archaeological_finds/views.py b/archaeological_finds/views.py index 5d1747032..2cd83c566 100644 --- a/archaeological_finds/views.py +++ b/archaeological_finds/views.py @@ -1331,6 +1331,8 @@ def get_geo_items(request, current_right=None):      operation_pk = request.GET.get("operation_id")      context_record_pk = request.GET.get("context_record_id")      pk = request.GET.get("pk") +    if "external_" in operation_pk or "external_" in context_record_pk: +        return HttpResponse("{}")      if operation_pk:          try:              item = Operation.objects.get(pk=operation_pk)  | 
