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 06bbfe632..7dae92827 100644 --- a/archaeological_finds/views.py +++ b/archaeological_finds/views.py @@ -1320,14 +1320,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) |