diff options
Diffstat (limited to 'archaeological_finds/views.py')
| -rw-r--r-- | archaeological_finds/views.py | 12 | 
1 files changed, 4 insertions, 8 deletions
diff --git a/archaeological_finds/views.py b/archaeological_finds/views.py index bba4efb13..4c1c3890b 100644 --- a/archaeological_finds/views.py +++ b/archaeological_finds/views.py @@ -1338,14 +1338,10 @@ class PublicFindAPI(APIView):          return Response(serializer.data) -def get_geo_items( -    request, -    get_polygons, -    pk=None, -    context_record_pk=None, -    operation_pk=None, -    current_right=None, -): +def get_geo_items(request, get_polygons, current_right=None): +    operation_pk = request.GET.get("operation_pk") +    context_record_pk = request.GET.get("context_record_pk") +    pk = request.GET.get("pk")      if operation_pk:          try:              bf = Operation.objects.get(pk=operation_pk)  | 
